max1363.c (6e9041c6ddd6cbdc61d87bcaca8ca7bb17c28377) max1363.c (ddeb64f36d2a1333927e273856d545767ee70a1c)
1 /*
2 * iio/adc/max1363.c
3 * Copyright (C) 2008-2010 Jonathan Cameron
4 *
5 * based on linux/drivers/i2c/chips/max123x
6 * Copyright (C) 2002-2004 Stefan Eletzhofer
7 *
8 * based on linux/drivers/acron/char/pcf8583.c

--- 646 unchanged lines hidden (view full) ---

655 size_t len)
656{
657 struct iio_dev *indio_dev = dev_to_iio_dev(dev);
658 struct max1363_state *st = iio_priv(indio_dev);
659 int i, ret;
660 unsigned long val;
661 bool found = false;
662
1 /*
2 * iio/adc/max1363.c
3 * Copyright (C) 2008-2010 Jonathan Cameron
4 *
5 * based on linux/drivers/i2c/chips/max123x
6 * Copyright (C) 2002-2004 Stefan Eletzhofer
7 *
8 * based on linux/drivers/acron/char/pcf8583.c

--- 646 unchanged lines hidden (view full) ---

655 size_t len)
656{
657 struct iio_dev *indio_dev = dev_to_iio_dev(dev);
658 struct max1363_state *st = iio_priv(indio_dev);
659 int i, ret;
660 unsigned long val;
661 bool found = false;
662
663 ret = strict_strtoul(buf, 10, &val);
663 ret = kstrtoul(buf, 10, &val);
664 if (ret)
665 return -EINVAL;
666 for (i = 0; i < ARRAY_SIZE(max1363_monitor_speeds); i++)
667 if (val == max1363_monitor_speeds[i]) {
668 found = true;
669 break;
670 }
671 if (!found)

--- 996 unchanged lines hidden ---
664 if (ret)
665 return -EINVAL;
666 for (i = 0; i < ARRAY_SIZE(max1363_monitor_speeds); i++)
667 if (val == max1363_monitor_speeds[i]) {
668 found = true;
669 break;
670 }
671 if (!found)

--- 996 unchanged lines hidden ---