From patchwork Mon Sep 12 17:31:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 12973849 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 322BFC6FA82 for ; Mon, 12 Sep 2022 17:32:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230164AbiILRcX (ORCPT ); Mon, 12 Sep 2022 13:32:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbiILRcV (ORCPT ); Mon, 12 Sep 2022 13:32:21 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE08622298 for ; Mon, 12 Sep 2022 10:32:19 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id y2so6754985qtv.5 for ; Mon, 12 Sep 2022 10:32:19 -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=SfRlMEdYqoQDZzogonO2A8PPDLAM0b7+2EbyJQBKZ7c=; b=rBlHTgi/wJBt1XhWzXH7HQfvLaLhptda2ngGPVNiPPwPWTXfLhViM94wRgACULW4HI qBEJtyfxLQLs8CClO4dxJM+1Joy6/hKIrfCtVPaLjhWfgq1TghKkivYthsUO4L8Kh6Og kK/vfKAdQsD4RorqvRvxLktX3UKADzMw+S9oA= 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=SfRlMEdYqoQDZzogonO2A8PPDLAM0b7+2EbyJQBKZ7c=; b=e7BTCqtsLK1PPPr0aCcArWqx8GvczO5Y7fAVSdtVt2WZCHSXt1JFfXJLfFR2tBVEow X23cn0KWjZDwMmB3UHUBIFf4eZJ5Y7yAD7YmmRBsl/U1ReGkcNwPCjCUOAv/pCXxgvI2 U2M/C9kCF3vDjrrxklatUT3N7ynJvgJqiRYVhGNWX831YkbphCxsAnsHxNTyu0JMU/y4 Ad6J692Lzd+GfLuKciKSQ5NPSGmpLobGUh1RdA+mV1JmxBHEZ2R90btaeKP69TOEdN1r Ho1EHx5F5I+RvtPDMjmZFavdg9u2oLchKg9XKytT/Iy5fBiCT9sZeNwlF1s492hX9PhH XG9A== X-Gm-Message-State: ACgBeo1+iXQTIkFIgF4U3P937wbScXHAEvOA5xzpBFUzsQVV0VNGJgaa 4/gla0fJTxqexvL1sflVISHUBQ== X-Google-Smtp-Source: AA6agR5+OtszVJdRVxIYBUWn0P2VkJNin6g7+Q/OW6I9wD/u1RbUUFteyh4EjK5fIHaDnYGgFpAAsA== X-Received: by 2002:ac8:5e0d:0:b0:35b:af5b:42df with SMTP id h13-20020ac85e0d000000b0035baf5b42dfmr7596661qtx.100.1663003938801; Mon, 12 Sep 2022 10:32:18 -0700 (PDT) Received: from localhost.localdomain ([159.65.38.31]) by smtp.gmail.com with ESMTPSA id h63-20020a376c42000000b006b8d1914504sm8289394qkc.22.2022.09.12.10.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 10:32:18 -0700 (PDT) From: Matt Ranostay To: gupt21@gmail.com, jic23@kernel.org Cc: linux-iio@vger.kernel.org, linux-input@vger.kernel.org, linux-i2c@vger.kernel.org, Matt Ranostay Subject: [PATCH v3 0/5] HID: mcp2221: iio support and device resource management Date: Mon, 12 Sep 2022 10:31:57 -0700 Message-Id: <20220912173202.16723-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 Changes from v2: * add linux-iio list to CC This is a resend since forgot linux-iio@vger.kernel.org in original post Sorry for the spam to other lists.. 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(-)