git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
leds: pca955x: Fix -Wvoid-pointer-to-enum-cast warning
[sfrench/cifs-2.6.git]
/
drivers
/
leds
/
leds-pca955x.c
diff --git
a/drivers/leds/leds-pca955x.c
b/drivers/leds/leds-pca955x.c
index b10e1ef38db0b558e26fc143fb9318a9cb14a039..1d7fa0cd97bf8845616a0629fbcb154f16a44153 100644
(file)
--- a/
drivers/leds/leds-pca955x.c
+++ b/
drivers/leds/leds-pca955x.c
@@
-484,7
+484,7
@@
static int pca955x_probe(struct i2c_client *client)
const void *md = device_get_match_data(&client->dev);
if (md) {
- chip_type = (enum pca955x_type)md;
+ chip_type = (enum pca955x_type)
(uintptr_t)
md;
} else {
const struct i2c_device_id *id = i2c_match_id(pca955x_id,
client);