From: Aybuke Ozdemir Date: Wed, 17 Sep 2014 21:54:04 +0000 (+0300) Subject: Staging: media: cxd2099: Missing a blank line after declarations X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fcf1b73d08cd15912205f3b259ea81ccfde11970;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git Staging: media: cxd2099: Missing a blank line after declarations Fix checkpatch.pl issues with missing a blank line after declarations in cxd2099.c Signed-off-by: Aybuke Ozdemir Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/cxd2099/cxd2099.c b/drivers/staging/media/cxd2099/cxd2099.c index a2a5182570c5..73e7b2c9e4a7 100644 --- a/drivers/staging/media/cxd2099/cxd2099.c +++ b/drivers/staging/media/cxd2099/cxd2099.c @@ -152,6 +152,7 @@ static int write_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3); if (!status) { u8 buf[256] = {3}; + memcpy(buf+1, data, n); status = i2c_write(ci->i2c, ci->cfg.adr, buf, n+1); } @@ -201,6 +202,7 @@ static int write_io_data(struct cxd *ci, u8 *data, u8 n) status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3); if (!status) { u8 buf[256] = {3}; + memcpy(buf+1, data, n); status = i2c_write(ci->i2c, ci->cfg.adr, buf, n + 1); } @@ -448,6 +450,7 @@ static int read_attribute_mem(struct dvb_ca_en50221 *ca, return ci->amem[address]; #else u8 val; + mutex_lock(&ci->lock); set_mode(ci, 1); read_pccard(ci, address, &val, 1);