From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v8 2/3] x86: add support for Huawei WMI hotkeys. Date: Mon, 03 Dec 2018 15:22:20 +0100 Message-ID: References: <20181129235742.14332-1-ayman.bagabas@gmail.com> <20181129235742.14332-3-ayman.bagabas@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Andy Shevchenko Cc: Ayman Bagabas , ALSA Development Mailing List , Hui Wang , Andy Shevchenko , Darren Hart , Jaroslav Kysela , Kailang Yang , Linux Kernel Mailing List , Platform Driver List-Id: platform-driver-x86.vger.kernel.org On Mon, 03 Dec 2018 15:18:54 +0100, Andy Shevchenko wrote: > > On Mon, Dec 3, 2018 at 2:00 PM Takashi Iwai wrote: > > On Fri, 30 Nov 2018 00:57:37 +0100, > > Ayman Bagabas wrote: > > > > +struct huawei_wmi_priv { > > > + struct input_dev *idev; > > > + struct led_classdev cdev; > > > + acpi_handle handle; > > > > Is this handle set in anywhere? I couldn't see it in your patch. > > If it's supposed to be NULL, passing NULL explicitly makes your > > intention clearer. > > Isn't below an answer? > > > > + // Skip registering LED subsystem if no ACPI method was found. > > > + status = acpi_get_handle(priv->handle, "\\_SB.PCI0.LPCB.EC0", &priv->handle); Oh indeed, but why it passes priv->handle at the first argument...? thanks, Takashi