max5821.c (de4fb176622d54a82ea3ceb7362392aaf5ff0b5a) max5821.c (74f582ec127e3b10aec71e8d15f1c14b0f0481ec)
1// SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * iio/dac/max5821.c
4 * Copyright (C) 2014 Philippe Reynes
5 */
6
7#include <linux/kernel.h>
8#include <linux/module.h>

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

111 uintptr_t private,
112 const struct iio_chan_spec *chan,
113 const char *buf, size_t len)
114{
115 struct max5821_data *data = iio_priv(indio_dev);
116 bool powerdown;
117 int ret;
118
1// SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * iio/dac/max5821.c
4 * Copyright (C) 2014 Philippe Reynes
5 */
6
7#include <linux/kernel.h>
8#include <linux/module.h>

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

111 uintptr_t private,
112 const struct iio_chan_spec *chan,
113 const char *buf, size_t len)
114{
115 struct max5821_data *data = iio_priv(indio_dev);
116 bool powerdown;
117 int ret;
118
119 ret = strtobool(buf, &powerdown);
119 ret = kstrtobool(buf, &powerdown);
120 if (ret)
121 return ret;
122
123 data->powerdown[chan->channel] = powerdown;
124
125 ret = max5821_sync_powerdown_mode(data, chan);
126 if (ret < 0)
127 return ret;

--- 259 unchanged lines hidden ---
120 if (ret)
121 return ret;
122
123 data->powerdown[chan->channel] = powerdown;
124
125 ret = max5821_sync_powerdown_mode(data, chan);
126 if (ret < 0)
127 return ret;

--- 259 unchanged lines hidden ---