diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2012-05-16 18:22:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-16 13:27:16 -0700 |
commit | d32ec5518f728765983b18ec86b8de4a85115d62 (patch) | |
tree | 43cb9a1bca4534ee3f7e31d22e1b99f2770c1427 /drivers/staging | |
parent | 0462e2bb4e04f2facb32bc13611c7ca91c1c4468 (diff) |
staging: iio: change strict_strtoul() to kstrtoul() in hmc5843
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/iio/magnetometer/hmc5843.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/iio/magnetometer/hmc5843.c b/drivers/staging/iio/magnetometer/hmc5843.c index 9eac2f11c1e6..3e6e8c022964 100644 --- a/drivers/staging/iio/magnetometer/hmc5843.c +++ b/drivers/staging/iio/magnetometer/hmc5843.c @@ -202,7 +202,7 @@ static ssize_t hmc5843_set_operating_mode(struct device *dev, s32 status; int error; mutex_lock(&data->lock); - error = strict_strtoul(buf, 10, &operating_mode); + error = kstrtoul(buf, 10, &operating_mode); if (error) { count = error; goto exit; @@ -275,7 +275,7 @@ static ssize_t hmc5843_set_measurement_configuration(struct device *dev, struct i2c_client *client = to_i2c_client(indio_dev->dev.parent); struct hmc5843_data *data = iio_priv(indio_dev); unsigned long meas_conf = 0; - int error = strict_strtoul(buf, 10, &meas_conf); + int error = kstrtoul(buf, 10, &meas_conf); if (error) return error; mutex_lock(&data->lock); @@ -425,7 +425,7 @@ static ssize_t set_range(struct device *dev, unsigned long range = 0; int error; mutex_lock(&data->lock); - error = strict_strtoul(buf, 10, &range); + error = kstrtoul(buf, 10, &range); if (error) { count = error; goto exit; |