From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [PATCH v2 2/3] acpi i2c: Initialize info.type from of_compatible Date: Tue, 19 Jul 2016 10:07:05 +0300 Message-ID: <20160719070705.GN14693@lahna.fi.intel.com> References: <4b9ea75003d78406307cbb392150fb038b1b72f7.1468409668.git.leonard.crestez@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Rafael J. Wysocki" Cc: Crestez Dan Leonard , ACPI Devel Maling List , "Rafael J. Wysocki" , Jarkko Nikula , Len Brown , linux-i2c , Wolfram Sang , linux-spi , Mark Brown , Linux Kernel Mailing List , Octavian Purdila List-Id: linux-i2c@vger.kernel.org On Wed, Jul 13, 2016 at 02:20:57PM +0200, Rafael J. Wysocki wrote: > On Wed, Jul 13, 2016 at 1:53 PM, Crestez Dan Leonard > wrote: > > When using devicetree i2c_board_info.type is set to the compatible > > string with the vendor prefix removed. For I2C devices described via > > ACPI the i2c_board_info.type string is set to the ACPI device name. When > > using ACPI and DT ids this string ends up something like "PRP0001:00". > > > > If the of_compatible property is present try to use that instead. This > > makes it easier to instantiate i2c drivers through ACPI with DT ids. > > > > Signed-off-by: Crestez Dan Leonard > > Looks good to me, but Mika needs to have a look at it too. Looks good to me, Reviewed-by: Mika Westerberg -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html