From 6cc4bcc7e8bfc23f4454c267b27a4c4ff362c256 Mon Sep 17 00:00:00 2001 From: lfcorreia Date: Sun, 30 Jul 2006 11:16:27 +0000 Subject: [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 --- drv_generic_i2c.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3