[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20241130202153.7909f86a@jic23-huawei>
Date: Sat, 30 Nov 2024 20:21:53 +0000
From: Jonathan Cameron <jic23@...nel.org>
To: Fabio Estevam <festevam@...il.com>
Cc: Frank Li <Frank.Li@....com>, haibo.chen@....com, imx@...ts.linux.dev,
lars@...afoo.de, linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5 2/2] iio: adc: vf610_adc: limit i.MX6SX's channel
number to 4
On Tue, 26 Nov 2024 16:56:23 -0300
Fabio Estevam <festevam@...il.com> wrote:
> On Tue, Nov 26, 2024 at 4:53 PM Frank Li <Frank.Li@....com> wrote:
>
> > + chip_info = device_get_match_data(dev);
> > + if (!chip_info)
>
> This NULL check is not needed.
>
> If the code entered probe(), a compatible was matched.
Whilst I don't feel strongly either way on this check, I've dropped it
and applied the patches to the testing branch of iio.git.
Thanks,
Jonathan
Powered by blists - more mailing lists