Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2559508rwi; Tue, 1 Nov 2022 09:03:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5pojPVMJZFBJkYgOXP7uy6REV8+25a4szsG4aBUmrSD1hsYKt/AtjQI7F9J4DwkvBff0Is X-Received: by 2002:a05:600c:a47:b0:3a6:5848:4bde with SMTP id c7-20020a05600c0a4700b003a658484bdemr22292911wmq.189.1667318583386; Tue, 01 Nov 2022 09:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667318583; cv=none; d=google.com; s=arc-20160816; b=NXXzgfvx0+lG/dIo6yJq/7YScLa7EUc+rMt4yYXtfg2psgGVnjhpdRT2QNx1Qm/IKH ZWH4mqWQpPd1R3oXr5o1nyids6CrNA8poeZOWHC5OeZp1CQIv4V54fPczcTxyAW6MtqW IAFExMM+T5NH+lr7jMoCV6BlJVyzwHF+bgZp7A2MGvo5KFTVbIbBl/JoOD+Ms3Zy6jp4 VHtLh8WNiwAsY0ZvtzAh75JZs/F+oh0+pJCRkJDQlFwhj+rIpJve+zkvoz8dgW50sEIL 5A6SEDUmnRBVtgTg/Ug8488PT7FjsJmR9JZ5q3iJYvOkSEnIH442qv8BJ7/+1H3OcNmx FeXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xdmNWS4/+XM0XGPGvbAspGmoFoyFU59qZMPf+yMG2SE=; b=lrpDLnLDi6Vs/cYoc4RUhZKruHt1HABuJSLHRxWkzbSQ3qsItjIkXvw70r3spY8usU d56bbx8l5MOfmBryJsC/vUwSkLYgZTPDjw0PYOUR6msUO2vFm8rUP4vRbW1zD2WRHnJR WNhZPZ98UIsXHmyvT2FeaU67OhC+bil9vUJhlPuqSmh8ZzA1/AqRI9MHw3x9RxpRRQFS MXz6fZ40aTz8RjUtD9Jd2fVbyYEvVClvgVaArfqmfgw1wnIE9eClTiMOMqARelgNYOIR JiCosl+YxBskZaga3RyJwzN+GANmTLGJatnlZIwol6t0DIv4fSCZG4Z2xBL9MSLZwxN4 dKSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RXvW+CTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a056402268100b0045d292ef641si13103548edd.493.2022.11.01.09.02.35; Tue, 01 Nov 2022 09:03:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RXvW+CTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231499AbiKAPDH (ORCPT + 96 others); Tue, 1 Nov 2022 11:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231508AbiKAPCo (ORCPT ); Tue, 1 Nov 2022 11:02:44 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE36D1D0D0; Tue, 1 Nov 2022 07:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667314698; x=1698850698; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=KU7qwcjHRqpB+MNcE9GH1nnu3087nnxDD92xVTY/h1M=; b=RXvW+CTpoeB/xoXzQIS6cguFCoDNFnSgbdMhaek2CtyJ9qsCn6Nhx+yn AsxRA7hMpqJ+P+hPhjPAI8kKpqSQx3o2IJ15iLGg0Mgb5FRQpb2PWY0He JJslmbUHRW9YjCq6cD1ZOnRwr5FP9m9Mb1HkV7kpuAwjPxKOFF99APc82 azMLll+QMHjmOyaP1HriG9foFjpDWE6UV55Fq62VxOC55U8zo3IHlSWUD QnFoBPbzx2CIHsQ2102bPhs4qIE64odCKrFBi1xqXoEB2jlgoB/ucxhyu iFGRZEK1t1d/yUdK93aOaKf4Hrr5fFLIGQDWOkzFsG8WOvt5cG6v5kIJ0 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="292458210" X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="292458210" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 07:58:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="636423741" X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="636423741" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP; 01 Nov 2022 07:58:15 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1opsiT-005dbt-2a; Tue, 01 Nov 2022 16:58:13 +0200 Date: Tue, 1 Nov 2022 16:58:13 +0200 From: Andy Shevchenko To: Angel Iglesias Cc: linux-iio@vger.kernel.org, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Nuno =?iso-8859-1?Q?S=E1?= , Jonathan Cameron , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/2] i2c: core: Introduce i2c_client_get_device_id helper Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 30, 2022 at 06:51:06PM +0100, Angel Iglesias wrote: > Hello, > > I don't want to step anyone's work here, so I'm sending this RFC to the > devs involved in the original discussion. I read on Uwe Kleine-K?nig's > patchset submission thread the necessity for an i2c helper to aid with the > migration to the new i2c_driver .probe_new callback. Following the > suggestions made there, I wrote this small patchset implementing the > suggested helper function and ported the bmp280 IIO i2c probe to the new > probe using that helper. For the entire series (please drop RFC in the next version) Reviewed-by: Andy Shevchenko > Thanks for your time! > Angel > > Original discussion thread for additional context: > https://lore.kernel.org/all/20221023132302.911644-11-u.kleine-koenig@pengutronix.de/ > > Angel Iglesias (2): > i2c: core: Introduce i2c_client_get_device_id helper function > iio: pressure: bmp280: convert to i2c's .probe_new() > > drivers/i2c/i2c-core-base.c | 15 +++++++++++++++ > drivers/iio/pressure/bmp280-i2c.c | 8 ++++---- > include/linux/i2c.h | 1 + > 3 files changed, 20 insertions(+), 4 deletions(-) > > > base-commit: c32793afc6976e170f6ab11ca3750fe94fb3454d > -- > 2.38.1 > -- With Best Regards, Andy Shevchenko