staging: iio: resolver: align to match open parenthesis
Use a combination of tabs and spaces to align parameters to its corresponding open parenthesis. Checkpatch found this issue. Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ddab4a02c4
commit
ae6394aaf1
@ -42,10 +42,10 @@ struct ad2s1200_state {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static int ad2s1200_read_raw(struct iio_dev *indio_dev,
|
static int ad2s1200_read_raw(struct iio_dev *indio_dev,
|
||||||
struct iio_chan_spec const *chan,
|
struct iio_chan_spec const *chan,
|
||||||
int *val,
|
int *val,
|
||||||
int *val2,
|
int *val2,
|
||||||
long m)
|
long m)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
s16 vel;
|
s16 vel;
|
||||||
@ -113,7 +113,7 @@ static int ad2s1200_probe(struct spi_device *spi)
|
|||||||
DRV_NAME);
|
DRV_NAME);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&spi->dev, "request gpio pin %d failed\n",
|
dev_err(&spi->dev, "request gpio pin %d failed\n",
|
||||||
pins[pn]);
|
pins[pn]);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ static int ad2s1210_config_write(struct ad2s1210_state *st, u8 data)
|
|||||||
|
|
||||||
/* read value from one of the registers */
|
/* read value from one of the registers */
|
||||||
static int ad2s1210_config_read(struct ad2s1210_state *st,
|
static int ad2s1210_config_read(struct ad2s1210_state *st,
|
||||||
unsigned char address)
|
unsigned char address)
|
||||||
{
|
{
|
||||||
struct spi_transfer xfer = {
|
struct spi_transfer xfer = {
|
||||||
.len = 2,
|
.len = 2,
|
||||||
@ -282,8 +282,8 @@ static ssize_t ad2s1210_show_control(struct device *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t ad2s1210_store_control(struct device *dev,
|
static ssize_t ad2s1210_store_control(struct device *dev,
|
||||||
struct device_attribute *attr,
|
struct device_attribute *attr,
|
||||||
const char *buf, size_t len)
|
const char *buf, size_t len)
|
||||||
{
|
{
|
||||||
struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
|
struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
|
||||||
unsigned char udata;
|
unsigned char udata;
|
||||||
@ -330,7 +330,8 @@ error_ret:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t ad2s1210_show_resolution(struct device *dev,
|
static ssize_t ad2s1210_show_resolution(struct device *dev,
|
||||||
struct device_attribute *attr, char *buf)
|
struct device_attribute *attr,
|
||||||
|
char *buf)
|
||||||
{
|
{
|
||||||
struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
|
struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
|
||||||
|
|
||||||
@ -338,8 +339,8 @@ static ssize_t ad2s1210_show_resolution(struct device *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t ad2s1210_store_resolution(struct device *dev,
|
static ssize_t ad2s1210_store_resolution(struct device *dev,
|
||||||
struct device_attribute *attr,
|
struct device_attribute *attr,
|
||||||
const char *buf, size_t len)
|
const char *buf, size_t len)
|
||||||
{
|
{
|
||||||
struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
|
struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
|
||||||
unsigned char data;
|
unsigned char data;
|
||||||
@ -389,7 +390,7 @@ error_ret:
|
|||||||
|
|
||||||
/* read the fault register since last sample */
|
/* read the fault register since last sample */
|
||||||
static ssize_t ad2s1210_show_fault(struct device *dev,
|
static ssize_t ad2s1210_show_fault(struct device *dev,
|
||||||
struct device_attribute *attr, char *buf)
|
struct device_attribute *attr, char *buf)
|
||||||
{
|
{
|
||||||
struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
|
struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
|
||||||
int ret;
|
int ret;
|
||||||
@ -441,7 +442,8 @@ static ssize_t ad2s1210_show_reg(struct device *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t ad2s1210_store_reg(struct device *dev,
|
static ssize_t ad2s1210_store_reg(struct device *dev,
|
||||||
struct device_attribute *attr, const char *buf, size_t len)
|
struct device_attribute *attr,
|
||||||
|
const char *buf, size_t len)
|
||||||
{
|
{
|
||||||
struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
|
struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev));
|
||||||
unsigned char data;
|
unsigned char data;
|
||||||
|
Loading…
Reference in New Issue
Block a user