aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlfcorreia <>2006-07-30 11:16:27 +0000
committerlfcorreia <>2006-07-30 11:16:27 +0000
commit884d18529c71a3922ff75e73bc0a628a594ad0f2 (patch)
tree12a6ff50a8e10d2139a9459f43ab7b34742abf2e
parentcc5243d78e4d294243d12c36b6770cecd317e5e5 (diff)
downloadlcd4linux-884d18529c71a3922ff75e73bc0a628a594ad0f2.tar.gz
[lcd4linux @ 2006-07-30 11:16:27 by lfcorreia]
Add back drv_generic_i2c_close function
-rw-r--r--drv_generic_i2c.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drv_generic_i2c.c b/drv_generic_i2c.c
index 343ea80..a77d020 100644
--- a/drv_generic_i2c.c
+++ b/drv_generic_i2c.c
@@ -1,4 +1,4 @@
-/* $Id: drv_generic_i2c.c,v 1.6 2006/07/29 21:04:43 lfcorreia Exp $
+/* $Id: drv_generic_i2c.c,v 1.7 2006/07/30 11:16:27 lfcorreia Exp $
*
* generic driver helper for i2c displays
*
@@ -23,6 +23,9 @@
*
*
* $Log: drv_generic_i2c.c,v $
+ * Revision 1.7 2006/07/30 11:16:27 lfcorreia
+ * Add back drv_generic_i2c_close function
+ *
* Revision 1.6 2006/07/29 21:04:43 lfcorreia
* Better error handling, add proper I2C SLAVE device detection (not 100% finished)
*
@@ -153,6 +156,11 @@ int drv_generic_i2c_open(const char *section, const char *driver)
return -1;
}
+int drv_generic_i2c_close(void)
+{
+ close(i2c_device);
+ return 0;
+}
unsigned char drv_generic_i2c_wire(const char *name, const char *deflt)
{