aboutsummaryrefslogtreecommitdiffstats
path: root/drv_generic_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--drv_generic_i2c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drv_generic_i2c.c b/drv_generic_i2c.c
index f9fbafc..2170b0c 100644
--- a/drv_generic_i2c.c
+++ b/drv_generic_i2c.c
@@ -161,6 +161,12 @@ unsigned char drv_generic_i2c_wire(const char *name, const char *deflt)
}
+void drv_generic_i2c_byte(const unsigned char data)
+{
+ i2c_smbus_write_byte(i2c_device, data);
+}
+
+
void drv_generic_i2c_data(const unsigned char data)
{
my_i2c_smbus_write_byte_data(i2c_device, data);