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 X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3328C433E0 for ; Tue, 12 Jan 2021 16:42:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 585F023109 for ; Tue, 12 Jan 2021 16:42:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387763AbhALQmP (ORCPT ); Tue, 12 Jan 2021 11:42:15 -0500 Received: from www.zeus03.de ([194.117.254.33]:37318 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728027AbhALQmO (ORCPT ); Tue, 12 Jan 2021 11:42:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=k1; bh=WLEbJPC873nWMnwiOyARO6xkxnK 66e/bwM7RBGOc70U=; b=3aWck16ZLDFqsEERVcrG/peOwcndHVX81Zdi5G2ZNnP w+9LXhDQNUemSSZLlLj0qZtGyFKOQte76GZYWEWVFUafwUH5CO1XQ58ciL4S1pNU INxkLjEZppFgDcGN8TM0qah05T4kowS/Zm9NEpTL6KAipNtU8dLBw/x9YYQf3Heg = Received: (qmail 2812363 invoked from network); 12 Jan 2021 17:41:32 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 12 Jan 2021 17:41:32 +0100 X-UD-Smtp-Session: l3s3148p1@h5zqsba4RtEgAwDPXwxzAHrEwO71dOp2 From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, openipmi-developer@lists.sourceforge.net Subject: [PATCH RFC 0/3] treewide: remove open coded SMBus block transfers Date: Tue, 12 Jan 2021 17:41:26 +0100 Message-Id: <20210112164130.47895-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The bigger picture is that I want to extend the maximum block length for SMBus block transfers from 32 (SMBus2) to 255 (SMBus3). That needs some cleanups and refactoring first. To make that easier, it would be helpful if all in-kernel users would call the helper functions of the I2C core for SMBus block transfers and not open code it via the generic smbus_xfer. This series converts the three users doing that. I don't have the hardware, so these patches are only build tested. Please let me know what you think. Wolfram Sang (3): media: i2c: adv7842: remove open coded version of SMBus block write media: i2c: adv7842: remove open coded version of SMBus block read ipmi: remove open coded version of SMBus block write drivers/char/ipmi/ipmb_dev_int.c | 21 +++++++---------- drivers/media/i2c/adv7511-v4l2.c | 40 +++++++++++--------------------- drivers/media/i2c/adv7842.c | 14 +---------- 3 files changed, 23 insertions(+), 52 deletions(-) -- 2.29.2