# \[PATCH\] backlight: da9052\_bl: terminate da9052\_wled\_ids array with empty element

- Subsystems: FRAMEBUFFER LAYER, BACKLIGHT CLASS/SUBSYSTEM, DIALOG SEMICONDUCTOR DRIVERS, THE REST
- Maintainers: Helge Deller, Lee Jones, Daniel Thompson, Jingoo Han, Support Opensource, Linus Torvalds
- List: linux-fbdev
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linux-fbdev/2015/01/4414562/t

## \[PATCH\] backlight: da9052\_bl: terminate da9052\_wled\_ids array with empty element

- From: Andrey Ryabinin \<hidden\>
- Date: 2015-01-21 15:06:29 
- Message: https://ratatoskr.run/linux-fbdev/2015/01/4414562.md

```text
Array of platform_device_id elements should be terminated
with empty element.

Signed-off-by: Andrey Ryabinin <redacted>
---
 drivers/video/backlight/da9052_bl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/backlight/da9052_bl.c b/drivers/video/backlight/da9052_bl.c
index d4bd74bd..b1943e7 100644
--- a/drivers/video/backlight/da9052_bl.c
+++ b/drivers/video/backlight/da9052_bl.c
@@ -165,6 +165,7 @@ static struct platform_device_id da9052_wled_ids[] = {
 		.name		= "da9052-wled3",
 		.driver_data	= DA9052_TYPE_WLED3,
 	},
+	{ },
 };
 
 static struct platform_driver da9052_wled_driver = {
-- 
2.2.1

```

## Re: \[PATCH\] backlight: da9052\_bl: terminate da9052\_wled\_ids array with empty element

- From: Lee Jones \<hidden\>
- Date: 2015-01-21 16:18:28 
- Message: https://ratatoskr.run/linux-fbdev/2015/01/4414633.md

```text
On Wed, 21 Jan 2015, Andrey Ryabinin wrote:

> Array of platform_device_id elements should be terminated
> with empty element.
> 
> Signed-off-by: Andrey Ryabinin <redacted>
> ---
>  drivers/video/backlight/da9052_bl.c | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks.

> diff --git a/drivers/video/backlight/da9052_bl.c b/drivers/video/backlight/da9052_bl.c
> index d4bd74bd..b1943e7 100644
> --- a/drivers/video/backlight/da9052_bl.c
> +++ b/drivers/video/backlight/da9052_bl.c
> @@ -165,6 +165,7 @@ static struct platform_device_id da9052_wled_ids[] = {
>  		.name		= "da9052-wled3",
>  		.driver_data	= DA9052_TYPE_WLED3,
>  	},
> +	{ },
>  };
>  
>  static struct platform_driver da9052_wled_driver = {

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org â”‚ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
```
