aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlfcorreia <lfcorreia@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-07-30 11:16:27 +0000
committerlfcorreia <lfcorreia@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-07-30 11:16:27 +0000
commit6cc4bcc7e8bfc23f4454c267b27a4c4ff362c256 (patch)
tree12a6ff50a8e10d2139a9459f43ab7b34742abf2e
parent552041beda9baa69e490290436e3ff6e089506f8 (diff)
downloadlcd4linux-6cc4bcc7e8bfc23f4454c267b27a4c4ff362c256.tar.gz
[lcd4linux @ 2006-07-30 11:16:27 by lfcorreia]
Add back drv_generic_i2c_close function git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@678 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-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)
{