Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1635540ybc; Wed, 13 Nov 2019 01:51:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxkzfEGOTXi5684P4hIcEM+u7nrbM6FFZgmRoTfa9Buj1cOM6vRwKyIP7fTyKLCXRR3geE0 X-Received: by 2002:a05:6402:1609:: with SMTP id f9mr2553240edv.37.1573638675548; Wed, 13 Nov 2019 01:51:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638675; cv=none; d=google.com; s=arc-20160816; b=NvIJM9YZS2S5LkHakBR8APCpX82H4V57qSMUN2C+IE48kNWaLOtJgder1Efow3DcvY e/8cSIrJ2VxS92QR8N0xBm9Xf5H5XyHzGFbB1i73NXbsT2X+VHaUs/tYG6brdY6oYc2r Qbd5w0FCoiz2oydj54MB+ig1McXkSy115LCh706gNykQ0p76jEK3nhQGvBSWM2Hm/LHD w/AYmVtXMb/qRvEpNZJRlH28YWFHctuPSnq3CclkiSj0Owd6sjzVLwlJqOwcFS9PxI6m crj5uCmPWtX8C+dZ0xhrGAPN+6Ys1OoQJNQ/kcqefUuaAtkrKuXQzUJfq4VdtUDyHIvJ f4TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=fvIDAQYy+0zDNC4IUh2R9JVl3nJtiAuPjDNFCxDF8Lo=; b=gOaZA4lVl/m8MMaFsF0m3iG27JDlgHB52nzcfZDqG+OINxhmvyEcaiEOtgnkqdRdmn BnpgAGijKbEwgzHYZbAeA1Mvi7yIX16rb3v0C9nVq3dbQmntO9IyLtZwhLEKKCIvlSvh kZsLXFj7NyBjKHCdNiQKIDim66ninCyJmnImPDj7DzDiVI//elkoJ2RH3I6af9d8pt7q NuDULGd+8I2raJJFzMbgTFiXXLNssHWKrnyWanmY7aiCTlXuhbQ/VVD4KcWvPwHUAk66 p0CSia9ES4BOGAwW0kYOCQy3nt8GlueGU6SghiFz+HQNNI8KNmdZlILy9467Ipg/Msyj k4ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i39si1148346eda.88.2019.11.13.01.50.51; Wed, 13 Nov 2019 01:51:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727634AbfKMJrh (ORCPT + 99 others); Wed, 13 Nov 2019 04:47:37 -0500 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:36108 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbfKMJrg (ORCPT ); Wed, 13 Nov 2019 04:47:36 -0500 Received: from [109.168.11.45] (port=55106 helo=[192.168.101.73]) by hostingweb31.netsons.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1iUpFN-001u9L-Rh; Wed, 13 Nov 2019 10:47:33 +0100 Subject: Re: [PATCH v3 1/3] i2c: use void pointers for supplying data for reads and writes To: Dmitry Torokhov , Wolfram Sang Cc: linux-iio@vger.kernel.orgi, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Hartmut Knaack , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org References: <20191112203132.163306-1-dmitry.torokhov@gmail.com> <20191112203132.163306-2-dmitry.torokhov@gmail.com> From: Luca Ceresoli Message-ID: Date: Wed, 13 Nov 2019 10:47:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191112203132.163306-2-dmitry.torokhov@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, thanks for having taken into account my comments. On 12/11/19 21:31, Dmitry Torokhov wrote: > There is no need to force users of i2c_master_send()/i2c_master_recv() > and other i2c read/write bulk data API to cast everything into u8 pointers. > While everything can be considered byte stream, the drivers are usually > work with more structured data. > > Let's switch the APIs to accept [const] void pointers to cut amount of > casting needed. > > Acked-by: Jonathan Cameron > Signed-off-by: Dmitry Torokhov Reviewed-by: Luca Ceresoli -- Luca