From patchwork Sat Jul 22 20:07:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 13323012 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 7855FC0015E for ; Sat, 22 Jul 2023 20:07:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229567AbjGVUH0 (ORCPT ); Sat, 22 Jul 2023 16:07:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjGVUH0 (ORCPT ); Sat, 22 Jul 2023 16:07:26 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7BD561FDF; Sat, 22 Jul 2023 13:07:24 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.01,224,1684767600"; d="scan'208";a="170461175" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 23 Jul 2023 05:07:23 +0900 Received: from localhost.localdomain (unknown [10.226.92.35]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 8E6124004473; Sun, 23 Jul 2023 05:07:20 +0900 (JST) From: Biju Das To: Jonathan Cameron Cc: Biju Das , Lars-Peter Clausen , Michael Hennerich , Lucas Stankus , George Mois , linux-iio@vger.kernel.org, Geert Uytterhoeven , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 0/2] Use i2c_get_match_data() instead of device_get_match_data() Date: Sat, 22 Jul 2023 21:07:16 +0100 Message-Id: <20230722200718.142366-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Use i2c_get_match_data() to get match data for I2C, ACPI and DT-based matching instead of device_get_match_data() the one for ACPI/DT-based matching. This patch series is only compile tested. v1->v2: * Added patch#1 for fixing adxl313_i2c_id[] table. * Added Rb tag from Geert * Removed error check as all tables have data pointers. * retained Rb tag as the change is trivial. Biju Das (2): iio: accel: adxl313: Fix adxl313_i2c_id[] table iio: accel: adxl313: Use i2c_get_match_data drivers/iio/accel/adxl313_i2c.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)