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 87859C001B0 for ; Tue, 15 Aug 2023 09:52:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236230AbjHOJwD (ORCPT ); Tue, 15 Aug 2023 05:52:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236218AbjHOJvz (ORCPT ); Tue, 15 Aug 2023 05:51:55 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BADDE94; Tue, 15 Aug 2023 02:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692093113; x=1723629113; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=zz64c6hs9zGp40AahrkutfoXqSXXdMqAm8KSjmg0Mac=; b=LhzZ916XsqPTXqSNfmJMFC5iPOoF3IPJ8gBQklbpUboCuvYESjP1ut4w ph2rFU9/pi1tGoIsVVE3dgxQFd9eG4jyRjpugD8436ltzYc8lbnsQ69Gp YGjcGzdRkSLlf8sEqYBFHp0J2sSRhYK9DnFxytxNEz/6q6rSFTPFw5RPJ SxBOL16BR7IrBtyihqxdUYKeWe2griMwHJqDTny7A7z2Qmegsr99dejzI /8doQoA1EJBPZ8yi7/d51eLN8OB1zAF0Y1Ff5UWAQIDYfjY/Sz8SxpAai pBE7Mte9I8J2tZoG29egM2G0gXuMj1tvBZJqgjOQyMTfMHXlJvH6vjEjx A==; X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="351832263" X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="351832263" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2023 02:51:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="803767972" X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="803767972" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP; 15 Aug 2023 02:51:50 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qVqiK-00DJ9y-2g; Tue, 15 Aug 2023 12:51:48 +0300 Date: Tue, 15 Aug 2023 12:51:48 +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 , linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH] iio: potentiometer: ds1803: Convert enum->pointer for data in the ID table Message-ID: References: <20230812144106.163355-1-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230812144106.163355-1-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 Sat, Aug 12, 2023 at 03:41:06PM +0100, Biju Das wrote: > Convert enum->pointer for data in the ID table, so that > device_get_match_data() can do match against OF/ACPI/I2C tables, once i2c > bus type match support added to it. > > Replace enum->struct *ds1803_cfg for data in the ID table and simplify > ds1803_probe() by replacing device_get_match_data() with > i2c_get_match_data(). Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko