Commit 533016c8 authored by Joe Perches's avatar Joe Perches Committed by Jacek Anaszewski

leds: as3645a: Fix misuse of strlcpy

Probable cut&paste typo - use the correct field size.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
parent 51251542
......@@ -668,7 +668,7 @@ static int as3645a_v4l2_setup(struct as3645a *flash)
};
strlcpy(cfg.dev_name, led->name, sizeof(cfg.dev_name));
strlcpy(cfgind.dev_name, flash->iled_cdev.name, sizeof(cfg.dev_name));
strlcpy(cfgind.dev_name, flash->iled_cdev.name, sizeof(cfgind.dev_name));
flash->vf = v4l2_flash_init(
&flash->client->dev, flash->flash_node, &flash->fled, NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment