From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756897AbdEUTFI (ORCPT ); Sun, 21 May 2017 15:05:08 -0400 Received: from mail.windriver.com ([147.11.1.11]:61773 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752119AbdEUTFH (ORCPT ); Sun, 21 May 2017 15:05:07 -0400 Date: Sun, 21 May 2017 15:05:01 -0400 From: Paul Gortmaker To: Hans de Goede CC: Lee Jones , LKML , Bin Gao , Felipe Balbi , Andy Shevchenko Subject: Re: [PATCH v6] mfd: Add Cherry Trail Whiskey Cove PMIC driver Message-ID: <20170521190500.GE22800@windriver.com> References: <20170515181743.2174-1-hdegoede@redhat.com> <053963da-a791-e95f-dcc3-31161c553bb2@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Re: [PATCH v6] mfd: Add Cherry Trail Whiskey Cove PMIC driver] On 21/05/2017 (Sun 11:51) Hans de Goede wrote: > Hi, > > On 20-05-17 21:26, Paul Gortmaker wrote: > >On Sat, May 20, 2017 at 3:21 PM, Paul Gortmaker > > wrote: > >>On Mon, May 15, 2017 at 2:20 PM, Hans de Goede wrote: > >>>Hi, > >>> > >>>This is actually v7, with the following changes: > >>> > >>>Changes in v7: > >>>-Add explanation why this is a bool and why it selects i2c-designwaree > > > >Gah -- I missed the explanation mentioned above: > > > >-Change Kconfig option from tristate to boolean and add a select for the > > i2c-bus driver, this is necessary because the chtwc PMIC provides an ACPI > > OPRegion handler, which must be available before other drivers using it > > are loaded, which can only be ensured if the mfd, opregion and i2c-bus > > drivers are built in > > > >Given that, can we get rid of the modular macros in the code now as well? > > Yes we can, to be clear you are talking about dropping: > > MODULE_DEVICE_TABLE(i2c, cht_wc_i2c_id); > MODULE_DEVICE_TABLE(acpi, cht_wc_acpi_ids); > MODULE_LICENSE("GPL v2"); > MODULE_AUTHOR("Hans de Goede "); > > And replacing: > > module_i2c_driver(cht_wc_driver); > > with: > > builtin_i2c_driver(cht_wc_driver); Yes. > > Right ? > > Anything I'm missing ? Delete the include of and perhaps replace it with as required, depending on whether your file already has it and or uses the __init prefixes. > > If not I will post a new version with these removed / replaced. Great, thanks a lot. Paul. -- > > Regards, > > Hans