From patchwork Fri May 26 13:57:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 686576 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 93905C77B7A for ; Fri, 26 May 2023 13:57:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243793AbjEZN5t (ORCPT ); Fri, 26 May 2023 09:57:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243783AbjEZN5r (ORCPT ); Fri, 26 May 2023 09:57:47 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2F4D31B0; Fri, 26 May 2023 06:57:44 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.00,194,1681138800"; d="scan'208";a="160955042" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 26 May 2023 22:57:43 +0900 Received: from localhost.localdomain (unknown [10.226.93.166]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id CFC5B42229A2; Fri, 26 May 2023 22:57:40 +0900 (JST) From: Biju Das To: Wolfram Sang Cc: Biju Das , Andy Shevchenko , Philipp Zabel , linux-i2c@vger.kernel.org, Geert Uytterhoeven , Prabhakar Mahadev Lad , linux-renesas-soc@vger.kernel.org Subject: [PATCH RESEND v2 0/3] RZ/V2M I2Cdriver clean ups Date: Fri, 26 May 2023 14:57:35 +0100 Message-Id: <20230526135738.348294-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 aims to do the following clean ups based on feedback from Pavel while backporting this driver to 5.10.y-cip kernel. Drop extra space from config help description, Replace lowercase macros with static inline functions and finally in probe disable the operation of unit in case of error similar to remove and suspend callbacks. v1->v2: * Added Rb tag from Geert. * Updated commit header and description for patch#2. * Replaced macros bit_setl and bit_clrl with static inline functions. * Introduced rzv2m_i2c_disable() and shared the code between probe error path, remove and suspend callbacks. Biju Das (3): i2c: rzv2m: Drop extra space i2c: rzv2m: Replace lowercase macros with static inline functions i2c: rzv2m: Disable the operation of unit in case of error drivers/i2c/busses/Kconfig | 2 +- drivers/i2c/busses/i2c-rzv2m.c | 43 +++++++++++++++++++++++----------- 2 files changed, 30 insertions(+), 15 deletions(-)