summaryrefslogtreecommitdiffstats
path: root/modules/nfc
diff options
context:
space:
mode:
authorRakesh Goyal <rgoyal@nvidia.com>2012-01-27 18:13:29 +0530
committerRamanan Rajeswaran <ramanan@google.com>2012-03-09 08:51:15 -0800
commit4cbd62c2ca1600dcd2001d1c5a736abc043a0333 (patch)
tree8ee3ccc548b2df164dafb7eb0d61c9f1543c0e22 /modules/nfc
parenta9b677fce432b29ab8f61e13796f34880dc0fe0f (diff)
downloadhardware_libhardware-4cbd62c2ca1600dcd2001d1c5a736abc043a0333.zip
hardware_libhardware-4cbd62c2ca1600dcd2001d1c5a736abc043a0333.tar.gz
hardware_libhardware-4cbd62c2ca1600dcd2001d1c5a736abc043a0333.tar.bz2
add i2c_device_address member to nfc_pn544_device_t
Add I2C slave address. Multiple I2C addresses are possible for PN544 module. Configure address according to board design. Change-Id: I847e8f3db631f5039cf15143a9982f4b9b209f27
Diffstat (limited to 'modules/nfc')
-rw-r--r--modules/nfc/nfc_hw_example.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/nfc/nfc_hw_example.c b/modules/nfc/nfc_hw_example.c
index 9769282..54c9c56 100644
--- a/modules/nfc/nfc_hw_example.c
+++ b/modules/nfc/nfc_hw_example.c
@@ -44,6 +44,7 @@ static int nfc_open(const hw_module_t* module, const char* name,
dev->linktype = PN544_LINK_TYPE_INVALID;
dev->device_node = NULL;
dev->enable_i2c_workaround = 0;
+ dev->i2c_device_address = 0;
*device = (hw_device_t*) dev;
return 0;