Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3051004ima; Mon, 22 Oct 2018 22:42:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV60AM6KmgJbjaqM8sPICcf7Owapewz8eFb5Rd/6TsYzTHTYFHgmqrTRQ8xuN93XlTadhrXWI X-Received: by 2002:a17:902:2867:: with SMTP id e94-v6mr34432472plb.317.1540273322931; Mon, 22 Oct 2018 22:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540273322; cv=none; d=google.com; s=arc-20160816; b=mja3K4iyO4hdv0pEErn/ekmBj1ZG4N77CLfhg//xmq3G7UMi8CLkGO/3ITS4XUMvVN ADup0IjxQemHwrA4LQ1ThgxFYWSF5W32gg/0OhlaQDBFMer0QOEKvygiBJ6IOQlGhT5U XsylUcYxR7WET3yQw/f1Sf8xrkwWTib2IdidgKyVq6Rj68RczVcKw0GT68YHqkZq4uwn /gP9J6hq/k3vJieRZ8qWLbQsUUtFPyw3kVHytWtxgcIYNaNJm+RB7cyx5NYGxHFq27EU KjVwPon10VUanf8dvl1zWd7H6K2tPWbMYKZnvPu8bjuE7jFXwHm0NTgDa34R6wGtm6NF EPPQ== 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=sL2t2/3PQutTNbNvtQUB6c237VVd5HrF+YKRkZo0+mM=; b=pyRJnaGXJ2VnbOqZUngoK7E4N4/55LjgV61JiuutZSv50291ZO6BMWu16tQSOe/UrO 2VjCX7nno264wlhRdgehs2eEJe9Er46Shay0+c1Cj6bWj/rOhrUeLKCdFwOD+CnUDc3d uY8UiummMEWaVCqadEuCAZ4/C6GU3tDwFnGTs0HAzVfhPD55jD7OFUKPOmyeQr0sKccQ VopBhqt9uFE8aqieEWWt0kDorKZM7yTbi1Ot2o13Cruc4mlNI1wxzGIPGn9aA/IkDgs7 L+SC4ajlEy1qlAVpFaGb1aybj0OOhrAlKlUc4Y1VZn31hXwCHKBRTCNbw9WyNyV7zGPd JL5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=Q16jVJoH; 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 m17-v6si221189pfe.187.2018.10.22.22.41.44; Mon, 22 Oct 2018 22:42:02 -0700 (PDT) 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=Q16jVJoH; 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 S1727596AbeJWOCm (ORCPT + 99 others); Tue, 23 Oct 2018 10:02:42 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:38856 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbeJWOCl (ORCPT ); Tue, 23 Oct 2018 10:02:41 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9N5YScm007139; Tue, 23 Oct 2018 05:40:09 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=sL2t2/3PQutTNbNvtQUB6c237VVd5HrF+YKRkZo0+mM=; b=Q16jVJoHIQhez/vJYyDIZ3M161dGOBndGEBHgrPhxVxjZzCTiFVV2k5OKm8ddrrMK6Ll 3lRroPeh5RMaFybLV2Wz78gqnNFELmYwNI3C52FsW4E5AIaylwRDnr1BJJHootzN8NHg WFK5XxcYSHnvW0OXH//oKAWuH5cTcZDkBIDB3JbX+t0+woT+n08+d/fWWQS3VFyKrtxp uaInvfM05LjViVUCaf4L9Tzas8UD2yTLilOf1Z0klZWE60AnwQ1qU+RQ0Vv7fh67A355 C00xgKVi4E4g1vHdxSecN5/6D0mAx1cG3XLTPmt7y6WVGKW+jqQmJKpD42LNdUcNQprz Hw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2n7w0qjp96-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Oct 2018 05:40:09 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9N5e7p2015678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Oct 2018 05:40:07 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9N5e5mR005876; Tue, 23 Oct 2018 05:40:06 GMT Received: from mwanda (/129.205.6.86) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 22 Oct 2018 22:40:05 -0700 Date: Tue, 23 Oct 2018 08:39:54 +0300 From: Dan Carpenter To: Nishad Kamdar Cc: Lars-Peter Clausen , devel@driverdev.osuosl.org, Michael Hennerich , linux-iio@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Peter Meerwald-Stadler , Hartmut Knaack , Slawomir Stepien , Jonathan Cameron Subject: Re: [PATCH] staging: iio: adt7316: Switch to the gpio descriptor interface Message-ID: <20181023053954.zsvkq2wqwnyp2xrd@mwanda> References: <20181022171418.GA2612@nishad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181022171418.GA2612@nishad> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9054 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=492 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810230050 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 22, 2018 at 10:44:22PM +0530, Nishad Kamdar wrote: > - chip->ldac_pin = adt7316_platform_data[1]; > + chip->ldac_pin = devm_gpiod_get(dev, "ldac", GPIOD_OUT_HIGH); > + if (IS_ERR(chip->ldac_pin)) { > + ret = PTR_ERR(chip->ldac_pin); > + dev_err(dev, "Failed to request ldac GPIO: %d\n", > + ret); This can fit on one line: dev_err(dev, "Failed to request ldac GPIO: %d\n", ret); regards, dan carpenter > + return ret; > + }