aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-pca-platform.c
diff options
context:
space:
mode:
authorMarco Aurelio da Costa <costa@gamic.com>2009-03-28 16:34:44 -0400
committerJean Delvare <khali@linux-fr.org>2009-03-28 16:34:44 -0400
commiteff9ec95efaaf6b12d230f0ea7d3c295d3bc9d57 (patch)
tree741c1ec65283018583bc2a8d5577e3ce8c201994 /drivers/i2c/busses/i2c-pca-platform.c
parentbac3e7c2aa2575a1c71f6fa643499676ca7c12c3 (diff)
i2c-algo-pca: Add PCA9665 support
Add support for the PCA9665 I2C controller. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-pca-platform.c')
-rw-r--r--drivers/i2c/busses/i2c-pca-platform.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-pca-platform.c b/drivers/i2c/busses/i2c-pca-platform.c
index 6bb15ad0a6b6..51d179bbddf9 100644
--- a/drivers/i2c/busses/i2c-pca-platform.c
+++ b/drivers/i2c/busses/i2c-pca-platform.c
@@ -172,8 +172,9 @@ static int __devinit i2c_pca_pf_probe(struct platform_device *pdev)
172 172
173 i2c->adap.nr = pdev->id >= 0 ? pdev->id : 0; 173 i2c->adap.nr = pdev->id >= 0 ? pdev->id : 0;
174 i2c->adap.owner = THIS_MODULE; 174 i2c->adap.owner = THIS_MODULE;
175 snprintf(i2c->adap.name, sizeof(i2c->adap.name), "PCA9564 at 0x%08lx", 175 snprintf(i2c->adap.name, sizeof(i2c->adap.name),
176 (unsigned long) res->start); 176 "PCA9564/PCA9665 at 0x%08lx",
177 (unsigned long) res->start);
177 i2c->adap.algo_data = &i2c->algo_data; 178 i2c->adap.algo_data = &i2c->algo_data;
178 i2c->adap.dev.parent = &pdev->dev; 179 i2c->adap.dev.parent = &pdev->dev;
179 i2c->adap.timeout = platform_data->timeout; 180 i2c->adap.timeout = platform_data->timeout;
@@ -246,7 +247,7 @@ e_remap:
246e_alloc: 247e_alloc:
247 release_mem_region(res->start, res_len(res)); 248 release_mem_region(res->start, res_len(res));
248e_print: 249e_print:
249 printk(KERN_ERR "Registering PCA9564 FAILED! (%d)\n", ret); 250 printk(KERN_ERR "Registering PCA9564/PCA9665 FAILED! (%d)\n", ret);
250 return ret; 251 return ret;
251} 252}
252 253
@@ -290,7 +291,7 @@ static void __exit i2c_pca_pf_exit(void)
290} 291}
291 292
292MODULE_AUTHOR("Wolfram Sang <w.sang@pengutronix.de>"); 293MODULE_AUTHOR("Wolfram Sang <w.sang@pengutronix.de>");
293MODULE_DESCRIPTION("I2C-PCA9564 platform driver"); 294MODULE_DESCRIPTION("I2C-PCA9564/PCA9665 platform driver");
294MODULE_LICENSE("GPL"); 295MODULE_LICENSE("GPL");
295 296
296module_init(i2c_pca_pf_init); 297module_init(i2c_pca_pf_init);