Re: [PATCH 2/2] regulator: tps65218: Fix build warnings

2014-06-24 Thread Mark Brown
On Tue, Jun 24, 2014 at 01:59:16PM +0530, Sachin Kamat wrote: > rdev_get_id() returns an int. Convert rid to type int to avoid the > following warnings: > drivers/regulator/tps65218-regulator.c:132:10: warning: comparison of > unsigned expression < 0 is always false [-Wtype-limits] >

[PATCH 2/2] regulator: tps65218: Fix build warnings

2014-06-24 Thread Sachin Kamat
rdev_get_id() returns an int. Convert rid to type int to avoid the following warnings: drivers/regulator/tps65218-regulator.c:132:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] drivers/regulator/tps65218-regulator.c:146:10: warning: comparison of unsigned

[PATCH 2/2] regulator: tps65218: Fix build warnings

2014-06-24 Thread Sachin Kamat
rdev_get_id() returns an int. Convert rid to type int to avoid the following warnings: drivers/regulator/tps65218-regulator.c:132:10: warning: comparison of unsigned expression 0 is always false [-Wtype-limits] drivers/regulator/tps65218-regulator.c:146:10: warning: comparison of unsigned

Re: [PATCH 2/2] regulator: tps65218: Fix build warnings

2014-06-24 Thread Mark Brown
On Tue, Jun 24, 2014 at 01:59:16PM +0530, Sachin Kamat wrote: rdev_get_id() returns an int. Convert rid to type int to avoid the following warnings: drivers/regulator/tps65218-regulator.c:132:10: warning: comparison of unsigned expression 0 is always false [-Wtype-limits]