Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1305868 > unrolled thread
| Started by | Lee Jones <lee.jones@linaro.org> |
|---|---|
| First post | 2016-01-11 07:10 +0100 |
| Last post | 2016-01-11 07:10 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v2] backlight: tps65217_bl: Add MODULE_DEVICE_TABLE. Lee Jones <lee.jones@linaro.org> - 2016-01-11 07:10 +0100
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2016-01-11 07:10 +0100 |
| Subject | Re: [PATCH v2] backlight: tps65217_bl: Add MODULE_DEVICE_TABLE. |
| Message-ID | <qPDPY-6Oe-7@gated-at.bofh.it> |
On Sun, 29 Nov 2015, Enric Balletbo i Serra wrote:
> The device table is required to load modules based on modaliases.
>
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> ---
> Changes since last version:
> - Use of_match_ptr (Lee Jones)
>
> drivers/video/backlight/tps65217_bl.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
Applied, thanks.
> diff --git a/drivers/video/backlight/tps65217_bl.c b/drivers/video/backlight/tps65217_bl.c
> index 61d72bf..fd524ad 100644
> --- a/drivers/video/backlight/tps65217_bl.c
> +++ b/drivers/video/backlight/tps65217_bl.c
> @@ -320,10 +320,19 @@ static int tps65217_bl_probe(struct platform_device *pdev)
> return 0;
> }
>
> +#ifdef CONFIG_OF
> +static const struct of_device_id tps65217_bl_of_match[] = {
> + { .compatible = "ti,tps65217-bl", },
> + { /* sentinel */ },
> +};
> +MODULE_DEVICE_TABLE(of, tps65217_bl_of_match);
> +#endif
> +
> static struct platform_driver tps65217_bl_driver = {
> .probe = tps65217_bl_probe,
> .driver = {
> .name = "tps65217-bl",
> + .of_match_table = of_match_ptr(tps65217_bl_of_match),
> },
> };
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Back to top | Article view | linux.kernel
csiph-web