Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932465AbdHVJjV (ORCPT ); Tue, 22 Aug 2017 05:39:21 -0400 Received: from mga14.intel.com ([192.55.52.115]:51398 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932295AbdHVJjS (ORCPT ); Tue, 22 Aug 2017 05:39:18 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,411,1498546800"; d="scan'208";a="892908291" Message-ID: <1503394665.25945.43.camel@linux.intel.com> Subject: Re: [PATCH 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC From: Andy Shevchenko To: Takashi Iwai , linux-kernel@vger.kernel.org Cc: Lee Jones , Dmitry Torokhov , "Rafael J . Wysocki" , Mika Westerberg , Johannes Stezenbach , linux-input@vger.kernel.org, linux-acpi@vger.kernel.org Date: Tue, 22 Aug 2017 12:37:45 +0300 In-Reply-To: <20170822055710.26515-2-tiwai@suse.de> References: <20170822055710.26515-1-tiwai@suse.de> <20170822055710.26515-2-tiwai@suse.de> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1438 Lines: 49 On Tue, 2017-08-22 at 07:57 +0200, Takashi Iwai wrote: > This patch adds the MFD driver for Dollar Cove TI PMIC (ACPI INT33F5) > that is found on some Intel Cherry Trail devices. > The driver is based on the original work by Intel, found at: >   https://github.com/01org/ProductionKernelQuilts > > This is a minimal version for adding the basic resources.  Currently, > only ACPI PMIC opregion and the external power-button are used. Overall looks good. Few comments below. I hope Hans de Goede had been involved somehow to this. He did enormous work to examine all this PMIC/ACPI/I2C stuff on CHT platforms. > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include Alphabetical order? > +static const struct i2c_device_id dc_ti_i2c_id[] = { > + { } > +}; No need anymore. Moreover, you already are using ->probe_new(). > +static struct i2c_driver dc_ti_i2c_driver = { > + .driver = { > + .name = KBUILD_MODNAME, > + .pm = &dc_ti_pm_ops, > + .acpi_match_table = ACPI_PTR(dc_ti_acpi_ids), ACPI_PTR is redundant here, driver is solely for ACPI case. > + }, > + .probe_new = dc_ti_probe, > + .shutdown = dc_ti_shutdown, > + .id_table = dc_ti_i2c_id, > +}; -- Andy Shevchenko Intel Finland Oy