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 2B880C83F19 for ; Tue, 29 Aug 2023 14:54:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237116AbjH2OyR (ORCPT ); Tue, 29 Aug 2023 10:54:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237192AbjH2OyD (ORCPT ); Tue, 29 Aug 2023 10:54:03 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7AA21B7 for ; Tue, 29 Aug 2023 07:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693320827; x=1724856827; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PJSIDiJhgB15vSoASO3krRbwLAL+6ge2jHlCYQ+x1+s=; b=IKbw6AJDJmNaYfuEIbkVDem43Mir56F275LEJpyyC1qEZE1g7Z/xwNBd TevGgkW1x1f6wxvOXczC3PaI3yO3vC91lp4xhZTQtHJFcvyy1lr31pl/B evTm7oaXX7abT6V3ZbIcuw0av+zbAy6TSOTIUouA1Ri3hNUeQ+/T3idE7 zsNWCzngd2hcF5weiyNChAQlZuSuqcwOr/lqvRcDfATB6Kaqv+o9p+TDX u5bIgEB8+Tq6kQyGru/epTPokPWFwVQZm9nD9HKNp38yJ+KPSRMqStB/Y bf+KTHvkaQsG1w5RcGxreVyneb3Hs04nUz2jnkzublGLol01ay8FjvXTi g==; X-IronPort-AV: E=McAfee;i="6600,9927,10817"; a="372798869" X-IronPort-AV: E=Sophos;i="6.02,210,1688454000"; d="scan'208";a="372798869" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2023 07:53:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10817"; a="738739886" X-IronPort-AV: E=Sophos;i="6.02,210,1688454000"; d="scan'208";a="738739886" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP; 29 Aug 2023 07:53:42 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qb068-004uJy-1z; Tue, 29 Aug 2023 17:53:40 +0300 Date: Tue, 29 Aug 2023 17:53:40 +0300 From: Andy Shevchenko To: Biju Das Cc: Lee Jones , patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, Charles Keepax Subject: Re: [PATCH v2] mfd: arizona-i2c: Simplify probe() Message-ID: References: <20230828155617.87068-1-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230828155617.87068-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-kernel@vger.kernel.org On Mon, Aug 28, 2023 at 04:56:17PM +0100, Biju Das wrote: > Simplify probe() by replacing device_get_match_data() and ID lookup for > retrieving match data by i2c_get_match_data(). ... > + type = (unsigned long)i2c_get_match_data(i2c); uintptr_t ? -- With Best Regards, Andy Shevchenko