Commit 33fa6f14 authored by Federico Vaga's avatar Federico Vaga

sw:drv: coccicheck and checkpatch fixes

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 7c123155
...@@ -591,7 +591,7 @@ static const struct platform_device_id gn412x_fcl_id[] = { ...@@ -591,7 +591,7 @@ static const struct platform_device_id gn412x_fcl_id[] = {
{ {
.name = "gn412x-fcl", .name = "gn412x-fcl",
}, },
{ .name = "" }, /* last */ {}, /* last */
}; };
static struct platform_driver gn412x_fcl_platform_driver = { static struct platform_driver gn412x_fcl_platform_driver = {
......
...@@ -582,7 +582,7 @@ static const struct platform_device_id gn412x_gpio_id[] = { ...@@ -582,7 +582,7 @@ static const struct platform_device_id gn412x_gpio_id[] = {
{ {
.name = "gn412x-gpio", .name = "gn412x-gpio",
}, },
{ .name = "" }, /* last */ {}, /* last */
}; };
static struct platform_driver gn412x_gpio_platform_driver = { static struct platform_driver gn412x_gpio_platform_driver = {
......
...@@ -280,11 +280,13 @@ static int spec_gpio_init_table(struct spec_gn412x *spec_gn412x) ...@@ -280,11 +280,13 @@ static int spec_gpio_init_table(struct spec_gn412x *spec_gn412x)
struct gpiod_lookup_table *lookup; struct gpiod_lookup_table *lookup;
int err = 0; int err = 0;
lookup = kmemdup(&spec_gpiod_table, spec_gpiod_table_size(), GFP_KERNEL); lookup = kmemdup(&spec_gpiod_table, spec_gpiod_table_size(),
GFP_KERNEL);
if (!lookup) if (!lookup)
return -ENOMEM; return -ENOMEM;
lookup->dev_id = kstrdup(dev_name(&spec_gn412x->pdev->dev), GFP_KERNEL); lookup->dev_id = kstrdup(dev_name(&spec_gn412x->pdev->dev),
GFP_KERNEL);
if (!lookup->dev_id) if (!lookup->dev_id)
goto err_dup; goto err_dup;
......
...@@ -870,7 +870,7 @@ static const struct platform_device_id gn412x_dma_id[] = { ...@@ -870,7 +870,7 @@ static const struct platform_device_id gn412x_dma_id[] = {
.name = "spec-gn412x-dma", .name = "spec-gn412x-dma",
.driver_data = GN412X_DMA_GN4124_IPCORE, .driver_data = GN412X_DMA_GN4124_IPCORE,
}, },
{ .name = "" }, /* last */ {}, /* last */
}; };
struct platform_driver gn412x_dma_driver = { struct platform_driver gn412x_dma_driver = {
......
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