From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCDACC7112B for ; Fri, 18 Aug 2023 11:33:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376667AbjHRLct (ORCPT ); Fri, 18 Aug 2023 07:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376704AbjHRLcW (ORCPT ); Fri, 18 Aug 2023 07:32:22 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2F014208; Fri, 18 Aug 2023 04:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692358340; x=1723894340; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=1Mcbemr/JD5HiZoad05SkWOEni3vZ5K/boroirOAabY=; b=R9pqnRjoiXW2Io0ZfhjSZgXOurpdDCMN/6+p4lmYtBIdf9u8bAhDS3FF xtO/fpjTNlL4KmPEKEKAjGLog1zlXlTw1YWxy4gdAjy/mbDThm0T/+y2w eAsOO2YP4iwtGCBplUP1H6xrytsVpg2ez9y/p46+r2qqPs1USPba9yVuL HGiwb35OH3elfbBa4rWrMWFsVTfR1qDMbVFCiUHZpt10pfZnlCJaXqrqZ lKLXosDGow/+b/yVIrMzELnb1uoA6OqoPxucHQ0/+OKbF8eDkm3aiTXD5 BiN1N2RithUpTD56ciSdskR8Aj4mdBz9Dg5r+YeIRkccZjlW3we1awkrD Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10805"; a="376840663" X-IronPort-AV: E=Sophos;i="6.01,183,1684825200"; d="scan'208";a="376840663" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2023 04:32:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10805"; a="728580852" X-IronPort-AV: E=Sophos;i="6.01,183,1684825200"; d="scan'208";a="728580852" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga007.jf.intel.com with ESMTP; 18 Aug 2023 04:32:17 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qWxiB-005sl5-1L; Fri, 18 Aug 2023 14:32:15 +0300 Date: Fri, 18 Aug 2023 14:32:14 +0300 From: Andy Shevchenko To: Biju Das Cc: Jonathan Cameron , Lars-Peter Clausen , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-iio@vger.kernel.org, Geert Uytterhoeven , Prabhakar Mahadev Lad , linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v2 1/5] iio: magnetometer: ak8975: Convert enum->pointer for data in the match tables Message-ID: References: <20230818075600.24277-1-biju.das.jz@bp.renesas.com> <20230818075600.24277-2-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230818075600.24277-2-biju.das.jz@bp.renesas.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Fri, Aug 18, 2023 at 08:55:56AM +0100, Biju Das wrote: > Convert enum->pointer for data in the match tables to simplify the probe() > by replacing device_get_match_data() and i2c_client_get_device_id by > i2c_get_match_data() as we have similar I2C, ACPI and DT matching table. As this is a straightforward conversion, nothing should be broken, Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko