mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
staging: nvec: insert blank lines after declarations
This patch fixes coding style warnings reported by checkpatch.pl: "Missing a blank line after declarations". Signed-off-by: Pawel Lebioda <pawel.lebioda89@gmail.com> Acked-by: Marc Dietrich <marvin24@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f420c6c8e8
commit
fa79961786
3 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,7 @@ static void nvec_led_brightness_set(struct led_classdev *led_cdev,
|
|||
{
|
||||
struct nvec_led *led = to_nvec_led(led_cdev);
|
||||
unsigned char buf[] = NVEC_LED_REQ;
|
||||
|
||||
buf[4] = value;
|
||||
|
||||
nvec_write_async(led->nvec, buf, sizeof(buf));
|
||||
|
|
|
@ -226,6 +226,7 @@ static int nvec_power_get_property(struct power_supply *psy,
|
|||
union power_supply_propval *val)
|
||||
{
|
||||
struct nvec_power *power = dev_get_drvdata(psy->dev->parent);
|
||||
|
||||
switch (psp) {
|
||||
case POWER_SUPPLY_PROP_ONLINE:
|
||||
val->intval = power->on;
|
||||
|
|
|
@ -53,12 +53,14 @@ static struct nvec_ps2 ps2_dev;
|
|||
static int ps2_startstreaming(struct serio *ser_dev)
|
||||
{
|
||||
unsigned char buf[] = { NVEC_PS2, AUTO_RECEIVE_N, PACKET_SIZE };
|
||||
|
||||
return nvec_write_async(ps2_dev.nvec, buf, sizeof(buf));
|
||||
}
|
||||
|
||||
static void ps2_stopstreaming(struct serio *ser_dev)
|
||||
{
|
||||
unsigned char buf[] = { NVEC_PS2, CANCEL_AUTO_RECEIVE };
|
||||
|
||||
nvec_write_async(ps2_dev.nvec, buf, sizeof(buf));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue