OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca45d02
)
io: accel: kxcjk1013: Remove redundant assignment
author
Daniel Baluta
<daniel.baluta@intel.com>
Fri, 22 Aug 2014 07:35:00 +0000
(08:35 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Tue, 26 Aug 2014 19:49:41 +0000
(20:49 +0100)
data->range is already set by kxcjk1013_set_range.
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/kxcjk-1013.c
patch
|
blob
|
history
diff --git
a/drivers/iio/accel/kxcjk-1013.c
b/drivers/iio/accel/kxcjk-1013.c
index
57c515b
..
ae74293
100644
(file)
--- a/
drivers/iio/accel/kxcjk-1013.c
+++ b/
drivers/iio/accel/kxcjk-1013.c
@@
-239,9
+239,6
@@
static int kxcjk1013_chip_init(struct kxcjk1013_data *data)
if (ret < 0)
return ret;
- data->range = KXCJK1013_RANGE_4G;
-
-
ret = i2c_smbus_read_byte_data(data->client, KXCJK1013_REG_DATA_CTRL);
if (ret < 0) {
dev_err(&data->client->dev, "Error reading reg_data_ctrl\n");