Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1712980imu; Thu, 13 Dec 2018 22:20:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/ViWZWpEETGnwCSdnWPfivFIYLoitFJ51uIsqO6+ks9SN9uv50RE+lS2J4WB7h306x+Xgew X-Received: by 2002:a17:902:b48b:: with SMTP id y11mr1693344plr.200.1544768427502; Thu, 13 Dec 2018 22:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544768427; cv=none; d=google.com; s=arc-20160816; b=dq/GuRA9GwHyvFJY3cq0sJNsoDlC8+qkKTaYVkx+a5VE8H4LlYcu4qXc9Jm1ZVEtef bEid7XMZ4VTqigilJgw4L/8cGNFo23EFCqsvgsnvEvTsNJxpIF7KtNtilycz5EtdTlow uu0ILx0N+XT7x+wSs7dRg04dXtbq9yvEdwkDKR4yvSc2Cxe+VT4+QpJKaP9JfA4hqdWk XEOBBDdigEu2i7AxrlcaV+VzBD4SMTJ72/iX0y8Stit7jEriPC7V5smAubqgmjNmZL0b gMtz7NEhFsbM+tGrzErNsEV1LArT26Ukt9I+9+Z+f93ItF3+1DMkqNnVagunaF9opJCr WlGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=p013JWnpjnca6mpV+iy5JtIUsLtbzpnYEmV0KlH72+k=; b=jiyHA7E+k0TKREv7DZDza2Otnds+7bErXOKKb6vNhwsjhdI3OpnOlzQva4IpYdmdgH p4b59vZ/YjDw+ifrzXkMXEdFCXE1Px1N7UqQeB0C/e0dT5AhtUtdGvhpaOvlP9ItEBSw oVDgbRFlsvacmgg5FQaqWDvmCiATGIlNRMJbSSH1OmVXhFrNUdFp/AtO6hKNwWVt4aUG opSw/lIZQ3QOAlbKUbOz6f3UOqwx62qglW2Sxg0aKncFN0xyCiRGnCRHxLEq5EfqIA97 sfrRV/h+C55J1dP7an8WNJS0lmwh4g5zAp22ZAZ2uUjLCFFmsS1lpxmLt8QxAbDQFQ2s uOXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=nkQGORe+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 39si3311827plc.153.2018.12.13.22.20.12; Thu, 13 Dec 2018 22:20:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=nkQGORe+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbeLNGTU (ORCPT + 99 others); Fri, 14 Dec 2018 01:19:20 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:48784 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbeLNGTT (ORCPT ); Fri, 14 Dec 2018 01:19:19 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wBE6IfJg146018; Fri, 14 Dec 2018 06:18:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=p013JWnpjnca6mpV+iy5JtIUsLtbzpnYEmV0KlH72+k=; b=nkQGORe+D2uoNaKYgD6vMQ+1mfNRv8rgFcwA7qe02zIFTSVhgt9bmGmwJpz1/drQh3HV SzoMcOAqqpqv+qaZMmDWvxkv2AMbWW5liI2QczpYTEqbhKcVZm83uCTSORFSurdWws2b TCIJiLLzZZAjI6z+BG4yp2K66nW5CeXDzp5kTrWVX4/MQV40nqgh1Ffp9va8bRYrH31v xTh4oRMQdfEqc1FHj018TR920kfN4JlVB8A5STGwWRORznIbkINuoZDFXoUEFfMHoEiS z/OCAK5xpCWjLc0i4rkuJ72PYAI/V5GUB0DM+29QCfOtG4acX4ZD5O89XStOnNEoYLst LQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2pawwpbdq3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Dec 2018 06:18:49 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wBE6Imop017455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Dec 2018 06:18:48 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wBE6IkaO010051; Fri, 14 Dec 2018 06:18:47 GMT Received: from kadam (/197.157.0.36) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 13 Dec 2018 22:18:46 -0800 Date: Fri, 14 Dec 2018 09:18:20 +0300 From: Dan Carpenter To: Jeremy Fertic Cc: Jonathan Cameron , devel@driverdev.osuosl.org, Lars-Peter Clausen , Michael Hennerich , linux-iio@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Peter Meerwald-Stadler , Hartmut Knaack Subject: Re: [PATCH 02/11] staging: iio: adt7316: invert the logic of the check for an ldac pin Message-ID: <20181214061820.GV3116@kadam> References: <20181212005503.28054-1-jeremyfertic@gmail.com> <20181212005503.28054-3-jeremyfertic@gmail.com> <20181212081949.GH3116@kadam> <20181213220629.GB2496@r2700x.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181213220629.GB2496@r2700x.localdomain> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9106 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=467 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812140058 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 13, 2018 at 03:06:29PM -0700, Jeremy Fertic wrote: > On Wed, Dec 12, 2018 at 11:19:49AM +0300, Dan Carpenter wrote: > > On Tue, Dec 11, 2018 at 05:54:54PM -0700, Jeremy Fertic wrote: > > > ADT7316_DA_EN_VIA_DAC_LDCA is set when the dac and ldac registers are being > > > used to update the dacs instead of the ldac pin. ADT7516_SEL_AIN3 is an adc > > > input that shares the ldac pin. Only set these bits if an ldac pin is not > > > being used. > > > > > > Signed-off-by: Jeremy Fertic > > > > Huh... This bug has always been there... > > > > Fixes: 35f6b6b86ede ("staging: iio: new ADT7316/7/8 and ADT7516/7/9 driver") > > > > regards, > > dan carpenter > > > > Should I include this Fixes tag in v2? I wasn't sure how important this was > in staging. I think most of the patches in this series fix bugs that date > back to the introduction of the driver. I was just curious to see if it was a cleanup which introduced the inverted if statement. I think the Fixes tag is always useful. For example, it would be interesting to do some data mining to see how many bugs drivers normally have when they're first merged. regards, dan carpenter