Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10587485rwp; Fri, 21 Jul 2023 01:23:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlF0p3HVmYqpniSx6QBIU5JQAheT+ENTbVbIt7vFKo5kwwXV2feffxJbNiz57bz/2bxIJ/EN X-Received: by 2002:aa7:d74f:0:b0:51e:421e:d209 with SMTP id a15-20020aa7d74f000000b0051e421ed209mr1443485eds.13.1689927822047; Fri, 21 Jul 2023 01:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689927822; cv=none; d=google.com; s=arc-20160816; b=wO7/2eB1g8ci2TgH3aDAxkrMF1LFvPItqUhGba5Bn7Yr4nPgKpRCzKBATWZ+It/rTK VxBvFoT1mtLzQIkQBICVlGdq/kqH7EL+GK1nsiNbPyKyHCdWUYtZG5MoKOIgpciuU3ZQ ylLlX2RQtuiKQOGV3Fw0/2cS05n47xjyUuCWtdvcxeLo8HZM73sfI/bMK4HQt9p6djtH vprLS4+py5h929s/9jUtOEqCnAvUdCxMZ1XrGDsjFjLc3bZ/+U2Jr5HQ9hcgFRygo0t9 7bc9FDBKtKw+IShAt+U9AxJXWETtnaXwRkm5h9lu56PBqt4MnSoRfAqW8fLym1b7YhKQ ulig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=pFKYG/1VesNPnYJ+2RJdvyya/8SP7ErkfRv3C2Q2jPI=; fh=a2LQsJbft13zZi1EMKa3RYwt0yCIgJr4Ogwikqtm9z0=; b=t6C5Nrn5KrqB1KyIePOux0KUApUVT1Lwu1ueFPyuarZwYz2Cg+freewFORyAE3ebpW BkCUImowt3JhhY4IxI5E9BuVOsaKHTIKrMzVPTJejyvU537cN8euSABaxbdwE7Hgss81 oNfOsRmPnDCGS1mWZpj89SHFk7jt7HYfL/qgNTuTyZkQD6w3XudxpxZ9J0nQhqLeCSa/ KvsOTL13xMtzgboQFfReBGYRT994UfIF3NS1ZXMeVQh1PuYxgHPvSN5B5hUT1F/gobiP 55odXM+DK22raGiWhhf1Mma2fWuqCYHFbXd9HR0AemSjuIx3fO4V7zQnegimDvYMbOEy SfuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="R/L4KNBU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a05640214c300b00521763a2901si1994695edx.59.2023.07.21.01.23.18; Fri, 21 Jul 2023 01:23:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="R/L4KNBU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231247AbjGUIDj (ORCPT + 99 others); Fri, 21 Jul 2023 04:03:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231241AbjGUIDi (ORCPT ); Fri, 21 Jul 2023 04:03:38 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E7DC2704; Fri, 21 Jul 2023 01:03:37 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9939fbb7191so357267366b.0; Fri, 21 Jul 2023 01:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689926615; x=1690531415; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=pFKYG/1VesNPnYJ+2RJdvyya/8SP7ErkfRv3C2Q2jPI=; b=R/L4KNBUiIY6pAG3BlMdjWhYbTWzwWix687+2+VjTMZNlM4lL//UqfFcQhZB/r1RH0 BeE9LOjl7GnEWA6CVUuqscuQUz0koPEQcXPCZjx2N7tLRNXJ6UXCwzVpjXIeI7/dQ8XM Uu8lg2DipufmJAOmNSPJFPm85syLn46/UdjtDhJBSF8ADJb7BvW9L5TiZN5d3LUNBMyG usq7yMggmlo8/denLji15I8l7HM6vxulaqEu4tEhrI0x4UaxuzyCMTUXXRFRPFSpjAls dKbEF/t/VYnV7WD1AQMkzbdk9/k3Mk4S3311f0e4w/15seT5adOwioH1zWzAj9RfU+FQ VFwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689926615; x=1690531415; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=pFKYG/1VesNPnYJ+2RJdvyya/8SP7ErkfRv3C2Q2jPI=; b=eJ3OKB3PRe8eHptEzWkH7DhZFBXTmG0bQv3g7YBGuSH2SVhiyjS1MtYwM2Ka7TgQ2K xWhtxBqivHhoWmuv94fW9kLY8SYgprYwBLT+dP5MedeTZfebfon+vAcSl1ygJFdII+aL BgNqhtjHNZy4/AU82mjXChKi0dmOVElYWlQoAfpbOlxtKVloBSqn/VbN74U31ctgBs6g JbTIJ6qqR1t5NfvdKW6IA5lg1SC6JpNMye+vUY5c0fam2OhigotgLsp+gKfmM9f4xbQl VwsGsNWZliwjiCoXMbjMNqrH0FsSLkDB0mhHa1e6WckB6eWyPCAvMhv3/qY3E4rMWv01 d7OA== X-Gm-Message-State: ABy/qLYe4d9wWlQrozr8tT6ZV6FJaFdL96sNil/zhRXpSE2eKs9p5opX 7QId1RTmNTZo3SiMsNIixF8= X-Received: by 2002:a17:907:2bc4:b0:997:e7d0:e26d with SMTP id gv4-20020a1709072bc400b00997e7d0e26dmr1240606ejc.4.1689926615356; Fri, 21 Jul 2023 01:03:35 -0700 (PDT) Received: from ?IPv6:2003:f6:ef05:8700:f946:69a3:7954:9ee0? (p200300f6ef058700f94669a379549ee0.dip0.t-ipconnect.de. [2003:f6:ef05:8700:f946:69a3:7954:9ee0]) by smtp.gmail.com with ESMTPSA id fy17-20020a170906b7d100b009931a3adf64sm1853775ejb.17.2023.07.21.01.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 01:03:34 -0700 (PDT) Message-ID: Subject: Re: [PATCH v1 0/8] iio: core: A few code cleanups and documentation fixes From: Nuno =?ISO-8859-1?Q?S=E1?= To: Andy Shevchenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Date: Fri, 21 Jul 2023 10:06:05 +0200 In-Reply-To: <20230720205324.58702-1-andriy.shevchenko@linux.intel.com> References: <20230720205324.58702-1-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2023-07-20 at 23:53 +0300, Andy Shevchenko wrote: > Just set of almost unrelated to each other cleanups against IIO > core implementation. >=20 > The positive LoCs diffstat due to first patch that adds a lot of > documentation for the new added macro. >=20 > Andy Shevchenko (8): > =C2=A0 iio: core: Add opaque_struct_size() helper and use it > =C2=A0 iio: core: Use sysfs_match_string() helper > =C2=A0 iio: core: Switch to krealloc_array() > =C2=A0 iio: core: Use min() instead of min_t() to make code more robust > =C2=A0 iio: core: Get rid of redundant 'else' > =C2=A0 iio: core: Fix issues and style of the comments > =C2=A0 iio: core: Move initcalls closer to the respective calls > =C2=A0 iio: core: Improve indentation in a few places >=20 > =C2=A0drivers/iio/industrialio-core.c | 226 ++++++++++++++++-------------= --- > =C2=A01 file changed, 115 insertions(+), 111 deletions(-) >=20 Neat series... Just a few comments on my side and on patch 3 is up to you t= o take the comments or not. With my comment addressed on patch 2: Reviewed-by: Nuno Sa =20