From patchwork Sun Aug 20 10:26:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 13358745 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 72462EE49AE for ; Sun, 20 Aug 2023 10:27:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230402AbjHTK1d (ORCPT ); Sun, 20 Aug 2023 06:27:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbjHTK1R (ORCPT ); Sun, 20 Aug 2023 06:27:17 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E150F1B7; Sun, 20 Aug 2023 03:23:53 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2bcb0b973a5so11382831fa.3; Sun, 20 Aug 2023 03:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692527032; x=1693131832; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vO5XHeXhzQE0Sh+zPC3nv+/IcKxXaRwyJd1RR4VSqDU=; b=HRg0mywW0Qr/yhqsEJKvsNa6aoZO3jkQhKxAKgnbEW4xaTaDVcgptEfzUM2I/IaAM4 KMH8RQzwMv677NnzK0m8aOt+v3domrNSU9kYEiK5aSKHzOrpIJD0FnE75nFOJsEibVeb b+jXS7OIZxpPfsUyRii7TlDm1wVPl+bokwfSUw3wQM0rVWVzfscwDuAoFoCTBnGE8ttB tN/4LLHXK6/FknhzijNQWYYpvPed8UCnCGeIbuwxKdAwtWNYcownZyBFxF1A41oZP+ZN AaQ1MFtGU0yfJBoVgOzfSs/SSrGXgm4jg2yR4ny6t3mYmNXPmYUsc0DdV1jfibHvauBO OqTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692527032; x=1693131832; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vO5XHeXhzQE0Sh+zPC3nv+/IcKxXaRwyJd1RR4VSqDU=; b=LdFPVMgl8HYs4RN4Txkjsnl8lpv1b4RpB2QoFsw/DrE9Kk67sST7HHVUxY32gPSRpm DmNsp3Cmmo5eyG1KQ7dt/XhcMA7c1KSlUQcp0WM+ZSvKxRfmtSjyRdcGj1olqx4PdO87 zvjkoGzRdys9B/JmWTp2t/gjazclwkQBAluhRU16iMoOPAobFo/+bp1/W1gZiuGL6wuv /ek0oX1TSWjtEEMbAshlKFR/N4WbRTCOn1tGsEf15XYHNHJtpxJFoeYCHFaev5UcmrdO BX7I1bBneerM2YCO39hsWFiMkYj0kbCaoqRLVCrUWjJYdInUr4EF+qk/Zcw3U+kQXNzW gjsA== X-Gm-Message-State: AOJu0YzVoRd0Ulqm0/DpkPG292tIyX41tsK92ZLh3yhUMfsa31XoTKdS Gqo0Fb/FSn9c+KY5G8KITJKNXMEyWQ00Hmsh X-Google-Smtp-Source: AGHT+IFWYttXw8KF81nqKwkZxTpjsEBW4VDFq2d+b8WY19pM1FYPn2MfKFP+I0ZEfvl3fx9Uc59Oig== X-Received: by 2002:a05:6512:398e:b0:4fb:8bcd:acd4 with SMTP id j14-20020a056512398e00b004fb8bcdacd4mr2848357lfu.37.1692527031814; Sun, 20 Aug 2023 03:23:51 -0700 (PDT) Received: from localhost.localdomain (83-233-6-197.cust.bredband2.com. [83.233.6.197]) by smtp.gmail.com with ESMTPSA id x2-20020ac25dc2000000b004ff9d22e486sm1193787lfq.226.2023.08.20.03.23.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 03:23:50 -0700 (PDT) From: Marcus Folkesson To: Marcus Folkesson , Kent Gustavsson , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Shevchenko , Cosmin Tanislav , Arnd Bergmann , ChiYuan Huang , Haibo Chen , Ramona Bolboaca , Ibrahim Tilki , ChiaEn Wu , William Breathitt Gray Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 0/6] Add support for the whole MCP39xx family Date: Sun, 20 Aug 2023 12:26:04 +0200 Message-ID: <20230820102610.755188-1-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The main goal with this patchset is to add support for all similiar MCP39xx ADC chips. During all patch iterations we ended up with a few cleanup patches. See version notes in each patch. Marcus Folkesson (6): dt-bindings: iio: adc: mcp3911: add support for the whole MCP39xx family iio: adc: mcp3911: make use of dev_err_probe() iio: adc: mcp3911: simplify usage of spi->dev iio: adc: mcp3911: fix indentation iio: adc: mcp3911: avoid ambiguity parameters in macros iio: adc: mcp3911: add support for the whole MCP39xx family .../bindings/iio/adc/microchip,mcp3911.yaml | 6 + drivers/iio/adc/Kconfig | 6 +- drivers/iio/adc/mcp3911.c | 564 ++++++++++++++---- 3 files changed, 464 insertions(+), 112 deletions(-) base-commit: b320441c04c9bea76cbee1196ae55c20288fd7a6