i2c: check for proper length of the reg property
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 19 May 2015 16:29:48 +0000 (18:29 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 31 May 2015 23:22:51 +0000 (08:22 +0900)
commit4c1344f105b626c222ea64669dc6dcfe100ccf3b
treed13c012a88dcc8b362364a57a69615e1e8da7505
parent0c7cab96ec413a69af86965d94fb650f01c5887a
i2c: check for proper length of the reg property

int is vague, let's simply use the type of the variable in question.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c