From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751468AbcEJE7N (ORCPT ); Tue, 10 May 2016 00:59:13 -0400 Received: from lists.s-osg.org ([54.187.51.154]:38272 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbcEJE7L (ORCPT ); Tue, 10 May 2016 00:59:11 -0400 Subject: Re: [PATCHv5 3/8] i2c: Match using traditional OF methods, then by vendor-less compatible strings To: Kieran Bingham , Wolfram Sang , Lee Jones References: <1462374888-22888-1-git-send-email-kieran@bingham.xyz> <1462374888-22888-4-git-send-email-kieran@bingham.xyz> Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, grant.likely@linaro.org, sameo@linux.intel.com From: Javier Martinez Canillas Message-ID: <7715624c-6fec-a990-2ed7-79b959ccdcf3@osg.samsung.com> Date: Tue, 10 May 2016 00:58:57 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <1462374888-22888-4-git-send-email-kieran@bingham.xyz> 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 On 05/04/2016 11:14 AM, Kieran Bingham wrote: > From: Lee Jones > > This function provides a single call for all I2C devices which need to > match firstly using traditional OF means i.e by of_node, then if that > fails we attempt to match using the supplied I2C client name with a > list of supplied compatible strings with the ',' string > removed. The latter is required due to the unruly naming conventions > used currently by I2C devices. > > Acked-by: Grant Likely > Signed-off-by: Lee Jones > [Kieran: Fix static inline usage on !CONFIG_OF] > Signed-off-by: Kieran Bingham > Tested-by: Kieran Bingham > --- Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America