lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VfY_6pg=6atYwd=JcPd1MZqHZh5Dj_QYdQyS=5ENHL5aQ@mail.gmail.com>
Date:   Tue, 21 Jul 2020 22:33:24 +0300
From:   Andy Shevchenko <andy.shevchenko@...il.com>
To:     Alexandru Ardelean <alexandru.ardelean@...log.com>
Cc:     linux-iio <linux-iio@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Jonathan Cameron <jic23@...nel.org>
Subject: Re: [PATCH] iio: frequency: ad9523: convert rest of driver to device
 managed functions

On Tue, Jul 21, 2020 at 2:27 PM Alexandru Ardelean
<alexandru.ardelean@...log.com> wrote:
>
> The driver pretty much uses device managed functions. The only left-over is
> the iio_device_register() function, which also requires an action-or-reset
> hook to disable the regulator on the remove and error path.
>
> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@...log.com>

...


> +       ret = devm_iio_device_register(&spi->dev, indio_dev);
> +       if (ret == 0)

> +               dev_info(&spi->dev, "probed %s\n", indio_dev->name);
>
>         return ret;

Please, drop this useless spam (I agree here with Greg KH) and use simply
return devm_iio_...(...);

-- 
With Best Regards,
Andy Shevchenko

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ