mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-04 05:37:36 +00:00
ad525x_dpot-spi: Added Blank lines after declarations
This patch solves the blank line warning of checkpatch.pl Signed-off-by: Mohammad Jamal <md.jamalmohiuddin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3d494bba92
commit
c076860dd8
1 changed files with 4 additions and 0 deletions
|
@ -15,18 +15,21 @@
|
||||||
static int write8(void *client, u8 val)
|
static int write8(void *client, u8 val)
|
||||||
{
|
{
|
||||||
u8 data = val;
|
u8 data = val;
|
||||||
|
|
||||||
return spi_write(client, &data, 1);
|
return spi_write(client, &data, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int write16(void *client, u8 reg, u8 val)
|
static int write16(void *client, u8 reg, u8 val)
|
||||||
{
|
{
|
||||||
u8 data[2] = {reg, val};
|
u8 data[2] = {reg, val};
|
||||||
|
|
||||||
return spi_write(client, data, 2);
|
return spi_write(client, data, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int write24(void *client, u8 reg, u16 val)
|
static int write24(void *client, u8 reg, u16 val)
|
||||||
{
|
{
|
||||||
u8 data[3] = {reg, val >> 8, val};
|
u8 data[3] = {reg, val >> 8, val};
|
||||||
|
|
||||||
return spi_write(client, data, 3);
|
return spi_write(client, data, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +37,7 @@ static int read8(void *client)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
u8 data;
|
u8 data;
|
||||||
|
|
||||||
ret = spi_read(client, &data, 1);
|
ret = spi_read(client, &data, 1);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Reference in a new issue