From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751858AbdF2WpD (ORCPT ); Thu, 29 Jun 2017 18:45:03 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:43252 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751333AbdF2WpB (ORCPT ); Thu, 29 Jun 2017 18:45:01 -0400 Date: Thu, 29 Jun 2017 15:44:57 -0700 From: Guenter Roeck To: Dmitry Torokhov Cc: Sebastian Reichel , Sebastian Reichel , Support Opensource , Lee Jones , Rob Herring , Mark Rutland , Jean Delvare , devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 4/4] hwmon: da9052: add support for TSI channel Message-ID: <20170629224457.GA4360@roeck-us.net> References: <20170629124346.22325-1-sebastian.reichel@collabora.co.uk> <20170629124346.22325-5-sebastian.reichel@collabora.co.uk> <20170629184521.GA38388@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170629184521.GA38388@dtor-ws> User-Agent: Mutt/1.5.24 (2015-08-30) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 29, 2017 at 11:45:21AM -0700, Dmitry Torokhov wrote: > 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. > Agreed. Guenter