From patchwork Wed Oct 24 10:38:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 10654511 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 C17AC14BD for ; Wed, 24 Oct 2018 10:39:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC52B2A18B for ; Wed, 24 Oct 2018 10:39:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F35C2A241; Wed, 24 Oct 2018 10:39:06 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 2A2072A18B for ; Wed, 24 Oct 2018 10:39:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727063AbeJXTGg (ORCPT ); Wed, 24 Oct 2018 15:06:36 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38891 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726916AbeJXTGg (ORCPT ); Wed, 24 Oct 2018 15:06:36 -0400 Received: by mail-wr1-f68.google.com with SMTP id d10-v6so5029227wrs.5 for ; Wed, 24 Oct 2018 03:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id; bh=6fvva8WD9KhCnjyN1wh9WPmWN6Nq/6ckK3VDmMhasYk=; b=lYbp503lRjA6s58SSmjQieyJrwI8C8gPw+oLRj4EPBEwAFnw+Y32lqMjjwIIpYciM7 HBVfepZzWHG9IFaN3oQnEEp0v6ZzVFPINneOAV7bWzJlLqrS92AwWQ7b2RFrfH7kiAs0 /sOfOmWCJrCzfYpa8Vw55qr2UzylQYme4QYWs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6fvva8WD9KhCnjyN1wh9WPmWN6Nq/6ckK3VDmMhasYk=; b=Y6k3SSTCy2z7Y8PeC55pBs57+Bmdk1m88+5kZVAkyFm92rL2c5P3nOr+AJ5bigzqdN 3tGu9tnjL9uoYv1g2W2n8xy3anbqxfVLTMRRxvqGeiM2KuzgOwudCKBi/reXw0LgrNb8 NgVq/+QE2EOzyotIVVLbfmC0nUpa4SBFECWloSp59r37DIblSxNFqZUCAXxYNIY/cw3U gQK4HW4nRtcZsmJSXwxSxs+bX7j4n22mm57Y857CfJfc36vcj0A8p64eu76M3x9kcr8t 00T6P74uVvDcioNpUV1kSbqIWrjcVjE8NmFy0PE1cU4XA2QtTCkQvG+v0PKBniu5+wbG LmtA== X-Gm-Message-State: AGRZ1gIMoOAXsq43LfujV+T6dUvaix0HH45KLimPUm2RRGFulqQyw7ui MH0iD1/9zn9UuWtM1yMlVF/x6A== X-Google-Smtp-Source: AJdET5eyzGdcR061coCySFq9wXDitSu3bJKrf5oRRZKSeHqtM5+KK8Wc3YkgTNpFEvEhIuFlQ7pO5g== X-Received: by 2002:adf:f111:: with SMTP id r17-v6mr2315616wro.303.1540377540970; Wed, 24 Oct 2018 03:39:00 -0700 (PDT) Received: from roguebox.c.hoisthospitality.com ([185.7.230.213]) by smtp.gmail.com with ESMTPSA id e142-v6sm10012170wmf.20.2018.10.24.03.38.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Oct 2018 03:39:00 -0700 (PDT) From: Matt Ranostay To: jic23@kernel.org Cc: linux-iio@vger.kernel.org, Matt Ranostay Subject: [PATCH 0/2] iio: potentiometer: tpl0102: improve driver to report steps/range Date: Wed, 24 Oct 2018 11:38:56 +0100 Message-Id: <20181024103858.28201-1-matt.ranostay@konsulko.com> X-Mailer: git-send-email 2.17.1 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 This patchset enables userspace to know how many steps a respective potentiometer can support. Matt Ranostay (2): iio: potentiometer: tpl0102: switch to using pointer to chip config iio: potentiometer: tpl0102: add IIO_AVAIL_RANGE support drivers/iio/potentiometer/tpl0102.c | 41 +++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 11 deletions(-)