From patchwork Wed Nov 14 09:52:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Coffey X-Patchwork-Id: 10682299 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B4BD214BA for ; Wed, 14 Nov 2018 09:52:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A78BC2B051 for ; Wed, 14 Nov 2018 09:52:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BC2C2B058; Wed, 14 Nov 2018 09:52:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 293972B056 for ; Wed, 14 Nov 2018 09:52:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732405AbeKNTzX (ORCPT ); Wed, 14 Nov 2018 14:55:23 -0500 Received: from mail.babblebit.net ([37.139.8.208]:47060 "EHLO mail.babblebit.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727558AbeKNTzX (ORCPT ); Wed, 14 Nov 2018 14:55:23 -0500 Received: from localhost.localdomain (80-44-164-194.dynamic.dsl.as9105.com [80.44.164.194]) by mail.babblebit.net (Postfix) with ESMTPSA id 026C9209AF; Wed, 14 Nov 2018 09:52:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=babblebit.net; s=mail; t=1542189170; bh=Q3ZxM7lWheCJu//0FP8D70vNK7SSRF72M/CezkNS4aQ=; h=From:To:Cc:Subject:Date:From; b=aT9nsNKiQSdMpiqOKViMg/t4TmQ8zXMCYvaNpal2DNtu6v+qMMHpR2SCWrKIZQ7AV y7SMRiSsbdc8P1PNcezL3FRH6rQPgAappYvs5Fe1a+erIvdEN1c+ozjm4ztmspvG5v gY9WRgy+q7ZOq4Qyv9kvHfI9CIL3usWJ+tiEyhdwvpGybmYj9kgVecBsBpLkCr3FLQ 0Wi7Jv4TZ5nPw+v9yaWJbcrl6lxnfZGW8BJjNCuuCvRRT38HlhxyVzTu7ILzA62P4u YAkv9hI19rFOfvXAHT67bTMNgvbgZY8Lw4YIXJWsGN9PR7cuW4iqO+3l9KK4ytOLpH 0mklS2qihvhjw== From: Chris Coffey To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Cc: Peter Rosin , Slawomir Stepien , Rob Herring , Mark Rutland , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Chris Coffey Subject: [PATCH v2 0/2] Add support for Microchip MCP41xxx/42xxx potentiometers Date: Wed, 14 Nov 2018 09:52:39 +0000 Message-Id: <20181114095241.27037-1-cmc@babblebit.net> X-Mailer: git-send-email 2.11.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello all, This patch series adds device-tree documentation and driver support for the Microchip MCP41xxx/42xxx family of digital potentiometers. Changes in v2: - Move device tree binding documentation to separate commit as pointed out by Himanshu Jha. - Remove explicit '= 0' initialization in mcp41010_type enum as recommended by Himanshu Jha. - Change MCP41010_WRITE from (0x01 << 4) to BIT(4) as recommended by Himanshu Jha. - Use of_device_get_match_data() to load configuration as recommended by Peter Rosin. - Rename MCP41010_WIPER_ENABLE to MCP41010_WIPER_CHANNEL as suggested by Peter Rosin. - Remove CONFIG_OF build protections as recommended by Jonathan Cameron. - Remove of_match_ptr wrapper from mcp41010_driver struct as recommended by Jonathan Cameron. - Remove blank line in mcp41010.c intro as recommended by Jonathan Cameron. Chris Coffey (2): dt-bindings: iio: potentiometer: Add Microchip MCP41xxx/42xxx iio: potentiometer: Add driver for Microchip MCP41xxx/42xxx .../bindings/iio/potentiometer/mcp41010.txt | 29 +++ drivers/iio/potentiometer/Kconfig | 12 ++ drivers/iio/potentiometer/Makefile | 1 + drivers/iio/potentiometer/mcp41010.c | 216 +++++++++++++++++++++ 4 files changed, 258 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/potentiometer/mcp41010.txt create mode 100644 drivers/iio/potentiometer/mcp41010.c