lkml.org 
[lkml]   [2023]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] power: supply: bq24257_charger: Make chip type and name in sync
On Sun, Sep 10, 2023 at 07:10:06AM +0000, Biju Das wrote:
> Hi Andy Shevchenko,
> > On Sat, Sep 02, 2023 at 08:33:30PM +0100, Biju Das wrote:

...

> > > - if (ACPI_HANDLE(dev)) {
> > > - acpi_id = acpi_match_device(dev->driver->acpi_match_table,
> > > - &client->dev);
> > > - if (!acpi_id) {
> > > - dev_err(dev, "Failed to match ACPI device\n");
> > > - return -ENODEV;
> > > - }
> > > - bq->chip = (enum bq2425x_chip)acpi_id->driver_data;
> > > - } else {
> > > - bq->chip = (enum bq2425x_chip)id->driver_data;
> > > - }
> >
> > Do we still need acpi.h after this change?
>
> Yes, it is still needed as it is using
> ACPI_PTR.

Can we, please, drop ACPI_PTR() as it's more harmful than useful (same way as
you dropped the ifdeffery for OF cases in other patches)?

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2023-09-11 23:44    [W:0.092 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site