Re: [PATCH v1] tee: qcomtee: Drop unused assignment of platform_device_id driver data
Jens Wiklander <[email protected]> Mon, 29 Jun 2026 10:52:00 +0200
| Newsgroups | org.trustedfirmware.lists.op-tee,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAHUa44H-Pu9MMxpFyNPBZHw4gcqczss0AzEXQoaHpLWbetAWJQ@mail.gmail.com> |
Hi, On Wed, Jun 24, 2026 at 5:39=E2=80=AFAM Amirreza Zarrabi <[email protected]> wrote: > > Hi, > > On 6/17/2026 12:38 AM, Uwe Kleine-K=C3=B6nig (The Capable Hub) wrote: > > The driver explicitly sets the .driver_data member of struct > > platform_device_id to zero without relying on that value. Drop this > > unused assignment. > > > > While touching this array unify spacing and usage of commas and use > > a named initializer for .name for improved readability. > > > > Signed-off-by: Uwe Kleine-K=C3=B6nig (The Capable Hub) <u.kleine-koenig= @baylibre.com> > > --- > > Hello, > > > > while this is a cleanup that can stand on its own, it is also a > > preparation for a change to struct platform_device_id that requires tha= t > > .driver_data isn't assigned by a list initializer. > > > > Best regards > > Uwe > > > > drivers/tee/qcomtee/call.c | 7 ++++++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/tee/qcomtee/call.c b/drivers/tee/qcomtee/call.c > > index 0efc5646242a..4a597eeaf174 100644 > > --- a/drivers/tee/qcomtee/call.c > > +++ b/drivers/tee/qcomtee/call.c > > @@ -798,7 +798,12 @@ static void qcomtee_remove(struct platform_device = *pdev) > > kfree(qcomtee); > > } > > > > -static const struct platform_device_id qcomtee_ids[] =3D { { "qcomtee"= , 0 }, {} }; > > +static const struct platform_device_id qcomtee_ids[] =3D { > > + { > > + .name =3D "qcomtee", > > + }, > > + { } > > +}; > > MODULE_DEVICE_TABLE(platform, qcomtee_ids); > > > > Looks good to me, thanks. > > Reviewed-by: Amirreza Zarrabi <[email protected]> I'm picking up this. Cheers, Jens