Skip to content

Commit

Permalink
backlight: hx8357: Move OF table closer to its consumer
Browse files Browse the repository at this point in the history
Move OF table near to the user.

While at it, drop comma at terminator entry.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20240201144951.294215-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
  • Loading branch information
Andy Shevchenko authored and Lee Jones committed Mar 7, 2024
1 parent 64a6335 commit 2f15475
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions drivers/video/backlight/hx8357.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,19 +566,6 @@ static struct lcd_ops hx8357_ops = {

typedef int (*hx8357_init_fn)(struct lcd_device *);

static const struct of_device_id hx8357_dt_ids[] = {
{
.compatible = "himax,hx8357",
.data = hx8357_lcd_init,
},
{
.compatible = "himax,hx8369",
.data = hx8369_lcd_init,
},
{},
};
MODULE_DEVICE_TABLE(of, hx8357_dt_ids);

static int hx8357_probe(struct spi_device *spi)
{
struct device *dev = &spi->dev;
Expand Down Expand Up @@ -640,6 +627,19 @@ static int hx8357_probe(struct spi_device *spi)
return 0;
}

static const struct of_device_id hx8357_dt_ids[] = {
{
.compatible = "himax,hx8357",
.data = hx8357_lcd_init,
},
{
.compatible = "himax,hx8369",
.data = hx8369_lcd_init,
},
{}
};
MODULE_DEVICE_TABLE(of, hx8357_dt_ids);

static struct spi_driver hx8357_driver = {
.probe = hx8357_probe,
.driver = {
Expand Down

0 comments on commit 2f15475

Please sign in to comment.