Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1678060

Re: [PATCHv3 4/4] hwmon: da9052: add support for TSI channel

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Dmitry Torokhov <dmitry.torokhov@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCHv3 4/4] hwmon: da9052: add support for TSI channel
Date Thu, 29 Jun 2017 20:50:01 +0200
Message-ID <tXMFP-2IU-9@gated-at.bofh.it> (permalink)
References <tXH3r-7F4-3@gated-at.bofh.it> <tXH3s-7F4-17@gated-at.bofh.it>
X-Original-To Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nW12U3tGfNLOQq5CCk9GxYzl/z0w47+dOLeMqIIRhR8=; b=aKbHRHB6h/w/q7sJt6a+W2sBdEf2Pk915Hb3K1yg8CjaTutMWYy5P/HSvi0M80rSTT +1YiukOInSPuYSYcERqEsaobamjO5GO9w4Wv3+HQ/VGN8LgqckgLqwMT9NH3Qng1RF6k JtOUQK+NvvqkHiz3oIJ3p682hpUPAwpMQ6itPoiJr1r/3kuzMmRs49Uc3a2/z9eFlE8a PvrVOD/XIPpdQzshktD8X5KTdPBYGZGzkUIVpuCm/rugwQkx7M7gvuaDzf2QeWZPT+Nt SY2YWaBODoTjSesLC/j4QN27480RBpCfv23V/dXpgfTfIKP/tkXP9p6Kl+LKwqU5/hD8 zxgw==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=nW12U3tGfNLOQq5CCk9GxYzl/z0w47+dOLeMqIIRhR8=; b=WRfRIBEO6ubyOMKYFuu0ndBhceIvPXaEfgkNt9BF1CvHcn5f9vGhTBiNdb1dWqVYgn rKSItLni9UwUziR6F5o4M1aisOrWNydm1bEcmvyz199ShIPBy97BorNy7EKT9h2dZ2md s9UkSs+9w2H6EQ8ga/dBTQUUFbX0OcJAg/QTX6QLKkT3vxuCwyug4/49RrSIdA5Qw+pQ G81X4p5jWnitFL7c8jO8gSlXRGPj3qoojEsPeGXL4tSMAEvuIO3dh6I8+LWHCrPjwxs9 x24JRjiTApV83h6QTxn9FyXpUkPKKIP+AcYDKUPX/vouiyWSdeYIMGPes5wqAUHppJEu ugJw==
X-Gm-Message-State AKS2vOwPgxYhxjw3mivrb63rmEDCDLl/hqFF9MbE6B/MmznLSOwTdp35 8C9H+tueGDtH7Q==
X-Received by 10.84.217.207 with SMTP id d15mr10542191plj.127.1498761924657; Thu, 29 Jun 2017 11:45:24 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 24
Organization linux.* mail to news gateway
X-Original-Cc Sebastian Reichel <sre@kernel.org>, Support Opensource <support.opensource@diasemi.com>, Lee Jones <lee.jones@linaro.org>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
X-Original-Date Thu, 29 Jun 2017 11:45:21 -0700
X-Original-Message-ID <20170629184521.GA38388@dtor-ws>
X-Original-References <20170629124346.22325-1-sebastian.reichel@collabora.co.uk> <20170629124346.22325-5-sebastian.reichel@collabora.co.uk>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1678060

Show key headers only | View raw


Hi Sebastian,

On Thu, Jun 29, 2017 at 02:43:46PM +0200, Sebastian Reichel wrote:
> @@ -238,6 +239,14 @@ static int da9052_ts_probe(struct platform_device *pdev)
>  	if (!da9052)
>  		return -EINVAL;
>  
> +	/*
> +	 * Check if touchscreen pins are used are analogue input instead
> +	 * of having a touchscreen connected to them. The analogue input
> +	 * functionality will be provided by hwmon driver (if enabled).
> +	 */
> +	if (device_property_read_bool(pdev->dev.parent, "dlg,tsi-as-adc"))
> +		return -ENODEV;
> +

I believe this is not the right way of doing this. da9052-core should
simply forgo creating da9052-tsi platform device when this property is
present.

Thanks.

-- 
Dmitry

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCHv3 0/4] DA9052 hardware monitoring improvements Sebastian Reichel <sebastian.reichel@collabora.co.uk> - 2017-06-29 14:50 +0200
  [PATCHv3 2/4] hwmon: da9052: replace S_IRUGO with 0444 Sebastian Reichel <sebastian.reichel@collabora.co.uk> - 2017-06-29 14:50 +0200
  [PATCHv3 3/4] dt-bindings: mfd: da9052: support TSI as ADC Sebastian Reichel <sebastian.reichel@collabora.co.uk> - 2017-06-29 14:50 +0200
  [PATCHv3 1/4] mfd: da9052: fix manual ADC read after timed out read Sebastian Reichel <sebastian.reichel@collabora.co.uk> - 2017-06-29 14:50 +0200
  [PATCHv3 4/4] hwmon: da9052: add support for TSI channel Sebastian Reichel <sebastian.reichel@collabora.co.uk> - 2017-06-29 14:50 +0200
    Re: [PATCHv3 4/4] hwmon: da9052: add support for TSI channel Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-06-29 20:50 +0200
      Re: [PATCHv3 4/4] hwmon: da9052: add support for TSI channel Guenter Roeck <linux@roeck-us.net> - 2017-06-30 00:50 +0200

csiph-web