From patchwork Sun Sep 11 01:40:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 12972743 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 F0D39C6FA86 for ; Sun, 11 Sep 2022 01:41:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbiIKBlL (ORCPT ); Sat, 10 Sep 2022 21:41:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbiIKBlJ (ORCPT ); Sat, 10 Sep 2022 21:41:09 -0400 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 667E331341 for ; Sat, 10 Sep 2022 18:41:06 -0700 (PDT) Received: by mail-qv1-xf2d.google.com with SMTP id s13so4233079qvq.10 for ; Sat, 10 Sep 2022 18:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=c5vcW1lBPXfKib2G8cgHNSZRBAYnHmthJtjHqJonCT0=; b=LGhvldT2C8eMWAFuOEUlpXsqCQ9luO2q8VanSyu0OeUP7xaFFFPKA2Z4QAtrJzL7zF 5m3Q7FwGvlRPm6VTPmSo+4kw/eJs06TUSNKEuyf+LzXOvLzF6NG+rzbjldiGxZ8PCiLB Kg+ibVWubXsSum7vqCjUuljT/Lrp1FcoiejLw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=c5vcW1lBPXfKib2G8cgHNSZRBAYnHmthJtjHqJonCT0=; b=A0D/BoKLI0xZhacuCYoAb2Pizjvw8pm5Azx255a2vXRM+SoS9ATbI0iHbIKJFvCtIm jpzO+OERtRSHOGKlqAYvGrb9YnOSapNzrCxDaOZPqvJZ/zwgn2gA/+KxrGJzC/ZyVKoY cG3w1G+7MOzu/Q6i1pSHfbMqmuvPWJpPYyyNRRjQcbFt4N4kS98FpNduRebphHSlNQxe yD6THW4Y9cR7RxIm1+aDiPkl5CFUHZCBzJtf6vibVrGEDb6hfyoty1hw9Im4YrfuORmo Mu+XbT2btdf7c2osIkXyMp7ILRBpEo28ViygFpOhmWfx9O+pSHC0rmYe06jG6dyLJZdP +CDQ== X-Gm-Message-State: ACgBeo1tufZv2sPsxwGUgUVWUnoGBLssJKjtrjoRpN4X9IRQ3AHm3J4U fKpjL/tZ0FLVqGFR1E2kGWKpfgWh5ncSOCKfnAw= X-Google-Smtp-Source: AA6agR4141o6DsC4sZdZt2rHuKXxrWqLv/swTx7Gaf+Oai8/E4GxT5jZ+2ddQT95pzXmIM8Ja+dT8g== X-Received: by 2002:a0c:9a4c:0:b0:4a4:3ad8:3c28 with SMTP id q12-20020a0c9a4c000000b004a43ad83c28mr18314352qvd.124.1662860465543; Sat, 10 Sep 2022 18:41:05 -0700 (PDT) Received: from localhost.localdomain ([159.65.38.31]) by smtp.gmail.com with ESMTPSA id q26-20020ac8451a000000b003438a8e842fsm3542973qtn.44.2022.09.10.18.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Sep 2022 18:41:04 -0700 (PDT) From: Matt Ranostay To: jic23@kernel.org, gupt21@gmail.com Cc: linux-input@vger.kernel.org, linux-i2c@vger.kernel.org, Matt Ranostay Subject: [PATCH v2 0/5] HID: mcp2221: iio support and device resource management Date: Sat, 10 Sep 2022 18:40:43 -0700 Message-Id: <20220911014048.64235-1-matt.ranostay@konsulko.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Matt Ranostay This patchset is primarily to enable iio support for the MCP2221 HID driver, but requires several Kconfig changes and device resource management. First attempt of this patchset is referenced here: Link: https://lore.kernel.org/all/20220729154723.99947-1-matt.ranostay@konsulko.com/ Changes from v1: * Fixing various Kconfig recursive dependencies that appear with 'imply IIO' * Switch hid-mcp2221 driver to device managed resources for i2c support * Reworking patchset per advice on lore.kernel.org link above Matt Ranostay (5): i2c: muxes: ltc4306: fix future recursive dependencies iio: addac: stx104: fix future recursive dependencies iio: dac: fix future recursive dependencies HID: mcp2221: switch i2c registration to devm functions HID: mcp2221: add ADC/DAC support via iio subsystem drivers/hid/Kconfig | 1 + drivers/hid/hid-mcp2221.c | 196 ++++++++++++++++++++++++++++++++++++-- drivers/i2c/muxes/Kconfig | 2 +- drivers/iio/addac/Kconfig | 3 +- drivers/iio/dac/Kconfig | 6 +- 5 files changed, 195 insertions(+), 13 deletions(-)