aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2014-05-24 07:52:10 -0400
committerJonathan Cameron <jic23@kernel.org>2014-05-25 07:06:25 -0400
commita91a73c8b39a6b8bcc53fafa5372c65387c81233 (patch)
tree01aff6379a1b11a19e46f9e5b214f2b8be6d5fff /drivers/iio
parent3e729974d67608be773167677478781bc874d369 (diff)
iio:adc:max1363 incorrect resolutions for max11604, max11605, max11610 and max11611.
Cc: Stable@vger.kernel.org> Reported-by: Erik Habbinga <Erik.Habbinga@schneider-electric.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/max1363.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c
index 9cf3229a7272..1b3b74be5c20 100644
--- a/drivers/iio/adc/max1363.c
+++ b/drivers/iio/adc/max1363.c
@@ -1252,8 +1252,8 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
1252 .num_modes = ARRAY_SIZE(max1238_mode_list), 1252 .num_modes = ARRAY_SIZE(max1238_mode_list),
1253 .default_mode = s0to11, 1253 .default_mode = s0to11,
1254 .info = &max1238_info, 1254 .info = &max1238_info,
1255 .channels = max1238_channels, 1255 .channels = max1038_channels,
1256 .num_channels = ARRAY_SIZE(max1238_channels), 1256 .num_channels = ARRAY_SIZE(max1038_channels),
1257 }, 1257 },
1258 [max11605] = { 1258 [max11605] = {
1259 .bits = 8, 1259 .bits = 8,
@@ -1262,8 +1262,8 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
1262 .num_modes = ARRAY_SIZE(max1238_mode_list), 1262 .num_modes = ARRAY_SIZE(max1238_mode_list),
1263 .default_mode = s0to11, 1263 .default_mode = s0to11,
1264 .info = &max1238_info, 1264 .info = &max1238_info,
1265 .channels = max1238_channels, 1265 .channels = max1038_channels,
1266 .num_channels = ARRAY_SIZE(max1238_channels), 1266 .num_channels = ARRAY_SIZE(max1038_channels),
1267 }, 1267 },
1268 [max11606] = { 1268 [max11606] = {
1269 .bits = 10, 1269 .bits = 10,
@@ -1312,8 +1312,8 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
1312 .num_modes = ARRAY_SIZE(max1238_mode_list), 1312 .num_modes = ARRAY_SIZE(max1238_mode_list),
1313 .default_mode = s0to11, 1313 .default_mode = s0to11,
1314 .info = &max1238_info, 1314 .info = &max1238_info,
1315 .channels = max1238_channels, 1315 .channels = max1138_channels,
1316 .num_channels = ARRAY_SIZE(max1238_channels), 1316 .num_channels = ARRAY_SIZE(max1138_channels),
1317 }, 1317 },
1318 [max11611] = { 1318 [max11611] = {
1319 .bits = 10, 1319 .bits = 10,
@@ -1322,8 +1322,8 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
1322 .num_modes = ARRAY_SIZE(max1238_mode_list), 1322 .num_modes = ARRAY_SIZE(max1238_mode_list),
1323 .default_mode = s0to11, 1323 .default_mode = s0to11,
1324 .info = &max1238_info, 1324 .info = &max1238_info,
1325 .channels = max1238_channels, 1325 .channels = max1138_channels,
1326 .num_channels = ARRAY_SIZE(max1238_channels), 1326 .num_channels = ARRAY_SIZE(max1138_channels),
1327 }, 1327 },
1328 [max11612] = { 1328 [max11612] = {
1329 .bits = 12, 1329 .bits = 12,