Staging: iio: Align function parameters to match first row
This patch improves coding style by aligning parameters in iio/magnetometer function calls, to remove the following warning: "CHECK: Alignment should match open parenthesis". Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
9fb163f49e
Коммит
7079f21b66
|
@ -204,7 +204,8 @@ static int hmc5843_set_meas_conf(struct hmc5843_data *data, u8 meas_conf)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static ssize_t hmc5843_show_measurement_configuration(struct device *dev,
|
||||
static
|
||||
ssize_t hmc5843_show_measurement_configuration(struct device *dev,
|
||||
struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
|
@ -220,7 +221,8 @@ static ssize_t hmc5843_show_measurement_configuration(struct device *dev,
|
|||
return sprintf(buf, "%d\n", val);
|
||||
}
|
||||
|
||||
static ssize_t hmc5843_set_measurement_configuration(struct device *dev,
|
||||
static
|
||||
ssize_t hmc5843_set_measurement_configuration(struct device *dev,
|
||||
struct device_attribute *attr,
|
||||
const char *buf,
|
||||
size_t count)
|
||||
|
@ -246,7 +248,8 @@ static IIO_DEVICE_ATTR(meas_conf,
|
|||
hmc5843_set_measurement_configuration,
|
||||
0);
|
||||
|
||||
static ssize_t hmc5843_show_samp_freq_avail(struct device *dev,
|
||||
static
|
||||
ssize_t hmc5843_show_samp_freq_avail(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct hmc5843_data *data = iio_priv(dev_to_iio_dev(dev));
|
||||
|
@ -272,7 +275,8 @@ static int hmc5843_set_samp_freq(struct hmc5843_data *data, u8 rate)
|
|||
|
||||
mutex_lock(&data->lock);
|
||||
ret = regmap_update_bits(data->regmap, HMC5843_CONFIG_REG_A,
|
||||
HMC5843_RATE_MASK, rate << HMC5843_RATE_OFFSET);
|
||||
HMC5843_RATE_MASK,
|
||||
rate << HMC5843_RATE_OFFSET);
|
||||
mutex_unlock(&data->lock);
|
||||
|
||||
return ret;
|
||||
|
@ -305,7 +309,8 @@ static int hmc5843_set_range_gain(struct hmc5843_data *data, u8 range)
|
|||
}
|
||||
|
||||
static ssize_t hmc5843_show_scale_avail(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
struct hmc5843_data *data = iio_priv(dev_to_iio_dev(dev));
|
||||
|
||||
|
@ -396,7 +401,8 @@ static int hmc5843_write_raw(struct iio_dev *indio_dev,
|
|||
}
|
||||
|
||||
static int hmc5843_write_raw_get_fmt(struct iio_dev *indio_dev,
|
||||
struct iio_chan_spec const *chan, long mask)
|
||||
struct iio_chan_spec const *chan,
|
||||
long mask)
|
||||
{
|
||||
switch (mask) {
|
||||
case IIO_CHAN_INFO_SAMP_FREQ:
|
||||
|
|
Загрузка…
Ссылка в новой задаче