From patchwork Sun Jul 23 08:37:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 705680 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 AE7D8C001DF for ; Sun, 23 Jul 2023 08:37:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229614AbjGWIhc (ORCPT ); Sun, 23 Jul 2023 04:37:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjGWIhb (ORCPT ); Sun, 23 Jul 2023 04:37:31 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5272E19BF; Sun, 23 Jul 2023 01:37:29 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.01,226,1684767600"; d="scan'208";a="174151263" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 23 Jul 2023 17:37:28 +0900 Received: from localhost.localdomain (unknown [10.226.92.13]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 96A82400544A; Sun, 23 Jul 2023 17:37:24 +0900 (JST) From: Biju Das To: Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Biju Das , linux-acpi@vger.kernel.org, linux-i2c@vger.kernel.org, Wolfram Sang , Dmitry Torokhov , Geert Uytterhoeven , linux-renesas-soc@vger.kernel.org Subject: [PATCH RFC 0/2] Extend device_get_match_data() to struct bus_type Date: Sun, 23 Jul 2023 09:37:19 +0100 Message-Id: <20230723083721.35384-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-i2c@vger.kernel.org This patch series extend device_get_match_data() to struct bus_type, so that buses like I2C can get matched data. Biju Das (2): drivers: fwnode: Extend device_get_match_data() to struct bus_type i2c: Add i2c_device_get_match_data() callback drivers/base/property.c | 8 +++++++- drivers/i2c/i2c-core-base.c | 38 +++++++++++++++++++++++++++++-------- include/linux/device/bus.h | 3 +++ 3 files changed, 40 insertions(+), 9 deletions(-)