Path: csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod From: Dmitry Torokhov 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: References: X-Original-To: Sebastian Reichel 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: 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 , Support Opensource , Lee Jones , Rob Herring , Mark Rutland , Jean Delvare , Guenter Roeck , 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 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