mfd: Use kstrtoul_from_user in ab3550
authorPeter Huewe <peterhuewe@gmx.de>
Mon, 6 Jun 2011 20:43:31 +0000 (22:43 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 31 Jul 2011 21:28:21 +0000 (23:28 +0200)
commit402fb487005d0fcbd4ce627b10426b3491ac0590
tree7560fa2e3ecfcd1109a8e4ceb9ac35a48de7793a
parent914e6d4e36015180bdcb6b99e96adc6293b7c2c6
mfd: Use kstrtoul_from_user in ab3550

This patch replaces the code for getting an unsigned long from a
userspace buffer by a simple call to kstroul_from_user.
This makes it easier to read and less error prone.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab3550-core.c