Skip to content

Commit

Permalink
ad525x_dpot-spi: Added Blank lines after declarations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mohammad Jamal authored and Greg Kroah-Hartman committed Jan 12, 2015
1 parent 3d494bb commit c076860
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/misc/ad525x_dpot-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,29 @@
static int write8(void *client, u8 val)
{
u8 data = val;

return spi_write(client, &data, 1);
}

static int write16(void *client, u8 reg, u8 val)
{
u8 data[2] = {reg, val};

return spi_write(client, data, 2);
}

static int write24(void *client, u8 reg, u16 val)
{
u8 data[3] = {reg, val >> 8, val};

return spi_write(client, data, 3);
}

static int read8(void *client)
{
int ret;
u8 data;

ret = spi_read(client, &data, 1);
if (ret < 0)
return ret;
Expand Down

0 comments on commit c076860

Please sign in to comment.