Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754120AbbDSNaK (ORCPT ); Sun, 19 Apr 2015 09:30:10 -0400 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:39310 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752500AbbDSNaG (ORCPT ); Sun, 19 Apr 2015 09:30:06 -0400 Message-ID: <5533ADDC.5050203@kernel.org> Date: Sun, 19 Apr 2015 14:30:04 +0100 From: Jonathan Cameron User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Daniel Baluta CC: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH 3/3] iio: magnetometer: Add ACPI support for MMC35240 References: <1429095726-10055-1-git-send-email-daniel.baluta@intel.com> <1429095726-10055-4-git-send-email-daniel.baluta@intel.com> In-Reply-To: <1429095726-10055-4-git-send-email-daniel.baluta@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1633 Lines: 50 On 15/04/15 12:02, Daniel Baluta wrote: > We assume that ACPI device tables use MMC35240 to > identify MEMSIC's 3 axis magnetic sensor. > > Signed-off-by: Daniel Baluta Also fine, just wait for v2 of patch 1. > --- > drivers/iio/magnetometer/mmc35240.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c > index 4c76938..8811714 100644 > --- a/drivers/iio/magnetometer/mmc35240.c > +++ b/drivers/iio/magnetometer/mmc35240.c > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include > #include > > #include > @@ -488,6 +489,12 @@ static const struct dev_pm_ops mmc35240_pm_ops = { > SET_SYSTEM_SLEEP_PM_OPS(mmc35240_suspend, mmc35240_resume) > }; > > +static const struct acpi_device_id mmc35240_acpi_match[] = { > + {"MMC35240", 0}, > + { }, > +}; > +MODULE_DEVICE_TABLE(acpi, mmc35240_acpi_match); > + > static const struct i2c_device_id mmc35240_id[] = { > {"MMC35240", 0}, > {} > @@ -498,6 +505,7 @@ static struct i2c_driver mmc35240_driver = { > .driver = { > .name = MMC35240_DRV_NAME, > .pm = &mmc35240_pm_ops, > + .acpi_match_table = ACPI_PTR(mmc35240_acpi_match), > }, > .probe = mmc35240_probe, > .remove = mmc35240_remove, > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/