[PATCH 2/2] backlight: arcxcnn: add "arctic" vendor prefix
Brian Dodge
bdodge09 at gmail.com
Mon Jul 8 19:05:14 UTC 2019
Thanks. pSemi purchased ArcticSand a few years ago so they are the same
legal entity. I will ask them if they want to retain the original copyright
notice
On Mon, Jul 8, 2019, 2:05 PM Dan Murphy <dmurphy at ti.com> wrote:
> Brian
>
> On 6/30/19 7:28 PM, Brian Dodge wrote:
> > The original patch adding this driver and DT bindings improperly
> > used "arc" as the vendor-prefix. This adds "arctic" which is the
> > proper prefix and retains "arc" to allow existing users of the
> > "arc" prefix to update to new kernels. There is at least one
> > (Samsung Chromebook Plus)
> >
> > Signed-off-by: Brian Dodge <bdodge09 at gmail.com>
> > Acked-by: Daniel Thompson <daniel.thompson at linaro.org>
> > ---
> > drivers/video/backlight/arcxcnn_bl.c | 41
> +++++++++++++++++++++++++++---------
> > 1 file changed, 31 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/video/backlight/arcxcnn_bl.c
> b/drivers/video/backlight/arcxcnn_bl.c
> > index 7b1c0a0..a419554 100644
> > --- a/drivers/video/backlight/arcxcnn_bl.c
> > +++ b/drivers/video/backlight/arcxcnn_bl.c
> > @@ -1,9 +1,9 @@
> > // SPDX-License-Identifier: GPL-2.0-only
> > /*
> > - * Backlight driver for ArcticSand ARC_X_C_0N_0N Devices
> > + * Backlight driver for pSemi (formerly ArcticSand) ARC_X_C_0N_0N
> Devices
> > *
> > - * Copyright 2016 ArcticSand, Inc.
> > - * Author : Brian Dodge <bdodge at arcticsand.com>
>
> I know you are the original author from ArcticSand but did pSemi
> actually own the copyright in 2016?
>
> I don't think this is a big issue just wondering if we should retain the
> ArcticSand copyright as well.
>
> Probably a question for your legal department.
>
> Otherwise
>
> Reviewed-by: Dan Murphy <dmurphy at ti.com>
>
> > + * Copyright 2016-2019 pSemi, Inc.
> > + * Author : Brian Dodge <bdodge at psemi.com>
> > */
> >
> > #include <linux/backlight.h>
> > @@ -191,27 +191,46 @@ static void arcxcnn_parse_dt(struct arcxcnn *lp)
> > if (ret == 0)
> > lp->pdata->initial_brightness = prog_val;
> >
> > - ret = of_property_read_u32(node, "arc,led-config-0", &prog_val);
> > + ret = of_property_read_u32(node, "arctic,led-config-0", &prog_val);
> > + if (ret)
> > + ret = of_property_read_u32(node, "arc,led-config-0",
> &prog_val);
> > +
> > if (ret == 0)
> > lp->pdata->led_config_0 = (u8)prog_val;
> >
> > - ret = of_property_read_u32(node, "arc,led-config-1", &prog_val);
> > + ret = of_property_read_u32(node, "arctic,led-config-1", &prog_val);
> > + if (ret)
> > + ret = of_property_read_u32(node, "arc,led-config-1",
> &prog_val);
> > +
> > if (ret == 0)
> > lp->pdata->led_config_1 = (u8)prog_val;
> >
> > - ret = of_property_read_u32(node, "arc,dim-freq", &prog_val);
> > + ret = of_property_read_u32(node, "arctic,dim-freq", &prog_val);
> > + if (ret)
> > + ret = of_property_read_u32(node, "arc,dim-freq",
> &prog_val);
> > +
> > if (ret == 0)
> > lp->pdata->dim_freq = (u8)prog_val;
> >
> > - ret = of_property_read_u32(node, "arc,comp-config", &prog_val);
> > + ret = of_property_read_u32(node, "arctic,comp-config", &prog_val);
> > + if (ret)
> > + ret = of_property_read_u32(node, "arc,comp-config",
> &prog_val);
> > +
> > if (ret == 0)
> > lp->pdata->comp_config = (u8)prog_val;
> >
> > - ret = of_property_read_u32(node, "arc,filter-config", &prog_val);
> > + ret = of_property_read_u32(node, "arctic,filter-config",
> &prog_val);
> > + if (ret)
> > + ret = of_property_read_u32(node,
> > + "arc,filter-config", &prog_val);
> > +
> > if (ret == 0)
> > lp->pdata->filter_config = (u8)prog_val;
> >
> > - ret = of_property_read_u32(node, "arc,trim-config", &prog_val);
> > + ret = of_property_read_u32(node, "arctic,trim-config", &prog_val);
> > + if (ret)
> > + ret = of_property_read_u32(node, "arc,trim-config",
> &prog_val);
> > +
> > if (ret == 0)
> > lp->pdata->trim_config = (u8)prog_val;
> >
> > @@ -381,6 +400,8 @@ static int arcxcnn_remove(struct i2c_client *cl)
> > }
> >
> > static const struct of_device_id arcxcnn_dt_ids[] = {
> > + { .compatible = "arctic,arc2c0608" },
> > + /* here to remain compatible with an older binding, do not use */
> > { .compatible = "arc,arc2c0608" },
> > { }
> > };
> > @@ -404,5 +425,5 @@ static struct i2c_driver arcxcnn_driver = {
> > module_i2c_driver(arcxcnn_driver);
> >
> > MODULE_LICENSE("GPL v2");
> > -MODULE_AUTHOR("Brian Dodge <bdodge at arcticsand.com>");
> > +MODULE_AUTHOR("Brian Dodge <bdodge at psemi.com>");
> > MODULE_DESCRIPTION("ARCXCNN Backlight driver");
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190708/6902275e/attachment-0001.html>
More information about the dri-devel
mailing list