Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2564133pxb; Mon, 11 Jan 2021 13:04:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0dfT7inQxPP73wAYFvZu3eX3MfqtB/w963ZTKkWKbHXmjB41MNWpqTZjJT8+xEqkSXAO2 X-Received: by 2002:a17:906:565a:: with SMTP id v26mr927293ejr.332.1610399065489; Mon, 11 Jan 2021 13:04:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610399065; cv=none; d=google.com; s=arc-20160816; b=LdBuH+Qx/BwKtLO1g/tfoubGqJy1c5Bg7yCvl2eDMy2oYyb6NSsL/EdadtPiLeMK1Q 5a2/1K4bQn/ljEL63SOKMDxL1N2Rklq4hf4DNKuN9mvJrj2Ye9Oj2J3F8Y6vFNYQjJvN Gs+lZrPlTPVm+xUnaLhvaQchyl4g84aAbOSLiSvuAzwA65P7EWLden8Lgxk0/qfRohgZ CkfsDmin9tY2tiNB40fiiDpHY71SItBZzf0Vj+5bJ0u40+c0nxigobOG7hYqbwporHb8 bJNr5A8QDa9RTSm9tTl5r6qmnSHSZuYgiKnEaPQkS2wunalvQzDJ6wNmzlZgfE+x9M0h lTTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=64KUTegricnYCE/yb/bee1RaAw7LMVgw3jNSLmWG6Hs=; b=Xwl35T79YcB2abfAAc2iHeIW7IH8IOkT0/A5FbAo9criEztwwi/w4SyZYeUjotXUBc O+3mVwNAVJSBpoZaFayIfJ+c+BX5p6NZITXZVICItg7vPAMBhFPdBdTY/A522+c9BRvu 5IpvMPTZ7gVNoDxAi4SYONR/7Z+1coTqK3pwoUTUdSNy0Cnz5wrXRclkTBR23DfQekhA KEAlHOV2u4+DuvZIuBfxQbDkV9yeEXOZ3ByIwv8npaj3RmhlpnmugEw+vGQe0bRS2das yNFNBCVHDp+T762u1uyGDdHdz2yRLTpXjjFwttH4ZDllp7lrtB6ZV/FVAxkRszvyDcDr 7iag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg3si195197ejc.744.2021.01.11.13.04.01; Mon, 11 Jan 2021 13:04:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732448AbhAKVBz (ORCPT + 99 others); Mon, 11 Jan 2021 16:01:55 -0500 Received: from sauhun.de ([88.99.104.3]:47562 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbhAKVBy (ORCPT ); Mon, 11 Jan 2021 16:01:54 -0500 Received: from localhost (p54b331ec.dip0.t-ipconnect.de [84.179.49.236]) by pokefinder.org (Postfix) with ESMTPSA id A622C2C0270; Mon, 11 Jan 2021 22:01:11 +0100 (CET) Date: Mon, 11 Jan 2021 22:01:08 +0100 From: Wolfram Sang To: Dmitry Torokhov Cc: linux-iio@vger.kernel.orgi, Luca Ceresoli , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Hartmut Knaack , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org Subject: Re: [PATCH v3 0/3] Use void pointers instead of char in I2C transfer APIs Message-ID: <20210111210108.GA17475@kunai> Mail-Followup-To: Wolfram Sang , Dmitry Torokhov , linux-iio@vger.kernel.orgi, Luca Ceresoli , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Hartmut Knaack , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org References: <20191112203132.163306-1-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <20191112203132.163306-1-dmitry.torokhov@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Nov 12, 2019 at 12:31:29PM -0800, Dmitry Torokhov wrote: > While we indeed often deal with a stream of bytes when executing a > transfer, at the higher layers we usually work with more structured > data, and there is not really a reason to require casts to u8 * form the > callers. These series change I2C APIs to accept [const] void pointers, > and also adjust SMBUS implementation to use get/put_unaligned_16() and > memcpy() for moving data around. I just started to work on something SMBus, so I rediscovered this series and will comment now. --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl/8vJAACgkQFA3kzBSg KbZcTQ/9EP5YX9jTW2VqNS45hjnYxgTyEI3DWFpRLlLMp6Zqt8sz6YzxgcZHZGr+ 4gwW3yAxoGIbPLAYo2MOVu03hi4NVkhgTcBmTaUzPFBXFpHy/O8C9PBgp3oLVt3f EHqWosZXKbuQzYGQP3/U/kxyixsGUA6kJ4rAr2FJZ3V0rrG/g8dqKfq3iuOWv0GW SgMM3+3XmoNGiLJ430qD/nf6yfw1n6cGlKmaGrS28ej03qYImfNbMkBrsuCW1xRW ijJ5M6tYf5yjxbgyXBC1+U30isQuTSH+ekSMHqBwr784RS/cMUCyC5F/0Ivjlbuj rrlwBGF5HB4t/7YhV37fidgVONJuFJHFzzp3yc3Cl3aBYFTrzJw5a9VWadPOAcbW /Fov4bUSTHLquB+Wsf+QPXtnavC+Nkx1xzHgNs/j1QFSDo+5G5anMRjAtYbNuteh XHrqnmn/U/+2SJfI+geQ+d/YkQ80ULfY61SJmx123IGCvskh7634+EJhdJXrFZEZ 2nnsER6DHpx2ZDfXN6mNUAqTGSEvlNn3OzVqikrWdcAChbZeRTORT132xjmqkvdD YHwMob+iwMG6XOk71MtlvOKURV7KjFN9UVzlrpDtKiGt6dM5JiC9DNzFi9XYwGIt Pnq1BcwbydJ032LWw0NpiOtMbcNGEwjwpm2v+hPhakrfnprbN9A= =X9Tz -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--