Skip to contentSkip to conversation

Fix up a pointer-integer size mismatch warning in tps62360_probe()

PATCH In review David Howells 2 participants 4 messages Jan 3, 2014 – Jan 6, 2014 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 Fix up a pointer-integer size mismatch warning in tps62360_probe()

Fix up the following pointer-integer size mismatch warning in tps62360_probe():

	drivers/regulator/tps62360-regulator.c: In function 'tps62360_probe':
	drivers/regulator/tps62360-regulator.c:363:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
	   chip_id = (int)match->data;
		     ^
cc Laxman Dewangan <[email protected]>
cc Mark Brown <[email protected]>

---

 drivers/regulator/tps62360-regulator.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/tps62360-regulator.c +1 -1
index c2c0185a2dcd..c3fa15a299b1 100644
@@ -360,7 +360,7 @@ static int tps62360_probe(struct i2c_client *client,
 			dev_err(&client->dev, "Error: No device match found\n");
 			return -ENODEV;
 		}
-		chip_id = (int)match->data;
+		chip_id = (int)(long)match->data;
 		if (!pdata)
 			pdata = of_get_tps62360_platform_data(&client->dev);
 	} else if (id) {
maintainer
#1 lore raw
Quoted 3 lines · David Howells

Fix up the following pointer-integer size mismatch warning in tps62360_probe():

	drivers/regulator/tps62360-regulator.c: In function 'tps62360_probe':

Applied, but please follow the patch submission process in SubmittingPatches - you need to CC things to maintainers and use subject lines appropriate to the subsystem. Things that don't go to people's inboxes are likely to be missed, as are things that don't look relevant from a scan of the subject line.

#2 lore raw
Quoted 1 line · Mark Brown

you need to CC things to maintainers

warthog>grep -i tps6 MAINTAINERS
warthog1>

I cc'd Laxman who is the only person mentioned in the file.

I cc'd you who is mentioned in the "regulator" section and who appears in sign-offs in the log.

There is no "regulator" list in the MAINTAINERS file.

David

maintainer
#3 lore raw
Quoted 11 lines · David Howells
Quoted 1 line · Mark Brown

you need to CC things to maintainers

warthog>grep -i tps6 MAINTAINERS
warthog1>

I cc'd Laxman who is the only person mentioned in the file.

I cc'd you who is mentioned in the "regulator" section and who appears in sign-offs in the log.

But you didn't CC Liam who comaintains the subsystem and for me you used a random address from signoffs on old commits (which you will doubtless have noticed bounces) rather than the address in MAINTAINERS. It looks awfully like you only used signoffs here...

Quoted 1 line

There is no "regulator" list in the MAINTAINERS file.

Right, lkml is fine there - IIRC that was prompted by another patch I noticed in the series, or it could just have been part of the boilerplate response for these things.