[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181017201501.GA15941@Asurada-Nvidia.nvidia.com>
Date: Wed, 17 Oct 2018 13:15:02 -0700
From: Nicolin Chen <nicoleotsuka@...il.com>
To: Guenter Roeck <linux@...ck-us.net>
Cc: jdelvare@...e.com, linux-hwmon@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/5] hwmon: (core) Inherit power properties to hdev
On Wed, Oct 17, 2018 at 12:44:30PM -0700, Guenter Roeck wrote:
> > + hdev->driver = dev->driver;
> > + hdev->power = dev->power;
> > + hdev->pm_domain = dev->pm_domain;
>
> dev can, unfortunately, be NULL
>
> > hdev->of_node = dev ? dev->of_node : NULL;
>
> ... as you can see here.
Oops..will fix it.
Thanks!
>
> Guenter
>
> > hwdev->chip = chip;
> > dev_set_drvdata(hdev, drvdata);
> > --
> > 2.17.1
> >
Powered by blists - more mailing lists