Skip to contentSkip to conversation

regulator: bd718xx: fix build warning on x86_64

PATCH New Matti Vaittinen 1 participant 1 message Oct 2, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regulator: bd718xx: fix build warning on x86_64

Casting address to unsigned int causes a warning on some 64 bit architectures. Fix the cast.

---

Patch created against Mark's origin/topic/bd718xx. Fixes build warning reported by Stephen from linux-next. See:
https://lore.kernel.org/lkml/[email protected]/T/#m3070ae63288d11eefda5c5f99ff31bd968afb67e

 drivers/mfd/rohm-bd718x7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/rohm-bd718x7.c +1 -1
index 161c8aac6d86..a29d529a96f4 100644
@@ -98,7 +98,7 @@ static int bd718xx_i2c_probe(struct i2c_client *i2c,
 		return -ENOMEM;
 
 	bd718xx->chip_irq = i2c->irq;
-	bd718xx->chip_type = (unsigned int)
+	bd718xx->chip_type = (unsigned int)(uintptr_t)
 				of_device_get_match_data(&i2c->dev);
 	bd718xx->dev = &i2c->dev;
 	dev_set_drvdata(&i2c->dev, bd718xx);
Signature · 1 line
2.14.3