From: Hans de Goede Subject: Re: [PATCH v2] ACPI / PMIC: Add opregion driver for Intel CHT WhiskeyCove PMIC Date: Tue, 28 Feb 2017 12:18:35 +0100 Message-ID: <62049bce-0aad-8f08-23fd-23be769c9e19@redhat.com> References: <20170227202628.5737-1-hdegoede@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [209.132.183.28] ([209.132.183.28]:36812 "EHLO mx1.redhat.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751154AbdB1LTj (ORCPT ); Tue, 28 Feb 2017 06:19:39 -0500 In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Andy Shevchenko Cc: "Rafael J . Wysocki" , Len Brown , Darren Hart , Andy Shevchenko , "linux-acpi@vger.kernel.org" , Takashi Iwai , Bin Gao , Felipe Balbi , Andy Shevchenko Hi, Thnak you for the review. On 27-02-17 22:50, Andy Shevchenko wrote: > On Mon, Feb 27, 2017 at 10:26 PM, Hans de Goede wrote: >> Add opregion driver for Intel CHT WhiskeyCove PMIC, based on various >> non upstreamed CHT WhiskeyCove PMIC patches. This does not include >> support for the Thermal opregion (DPTF) due to lacking documentation. > > Couple of nitpicks. > >> @@ -0,0 +1,232 @@ >> +/* >> + * intel_pmic_chtwc.c - Intel CHT Whiskey Cove PMIC operation region driver > > I would remove file name. You never know if it's going to be renamed or not. > >> +static int intel_cht_wc_pmic_update_power(struct regmap *regmap, int reg, >> + int bit, bool on) >> +{ > >> + u8 mask = bit; >> + >> + return regmap_update_bits(regmap, reg, mask, on ? 1 : 0); > > Hmm... Just leave one line? Both fixed. I will send a new version together with a new version of the Intel CHT WhiskeyCove PMIC mfd driver. Since this patch relies on defines from the generic mfd header that one needs to be merged first. Given the dependency it is probably best of both are merged through the mfd tree. Rafael, is that ok with you ? Regards, Hans