Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5939630ybi; Wed, 12 Jun 2019 11:03:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6lynLBiIVJKCfEiTfTqdS1+8HrypEvDFAuoPUa+3stjy6WpLn6OzWO+RXEEUnIiYy5eTa X-Received: by 2002:a17:902:42d:: with SMTP id 42mr79424562ple.228.1560362637393; Wed, 12 Jun 2019 11:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362637; cv=none; d=google.com; s=arc-20160816; b=FyXpUHJ8PTvpJ2MP3B4w3Wd3mhQLqxxTNbKwZ+ZirYbq9mGr9c2gKw7rT64+NAeKSE w218X3u7Z5BYkag7s7uYFu9f/HOgUk+DPLIVRHTfkPVlGNTKVI8uTZBsuHKLSa09OQPg BMSeh4HPOzU5fMS3e7fkXs6V6YUBO9grfMZft1jTllYtrKkTt7m+NiGaiGe+E9i2iCF4 z19NnHoB2AGz+2IC0WFK5EnlmFyFtrWGvxSK3NyF/R0Ii80B6jG56kPLsU7y48H5HcaP Mh7X6/16zrd4iDs6OWrQfjv3PFcRT95f1NfnLl7GiZTcbAS1xvehwQidSP6YgWvJN7aK Y8uQ== 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; bh=s5BrUdFcSnGvDxfCGwo7lXQ2V+j5HNBiD6MEdWM7yoI=; b=H6boX+qrZTN4eyzkCW+t2DIXtIoYZ0+3afPBC7TftMCI8SwFNxWmss/7BJ/DzSJfF1 4/JDW65LMpJKiYmZJ0m91OOQbtWWXhgFJOpAed/JorscOU4wCY6KlhQYztgAhh31Uu+g ZYT+4Bpwj5hy2hw0Pp0t+KNvnCpqkiyKAsCi11VmL9OLt9rw5987F5Lb/D1XWFqIc6EO df28m7qFSjD5A7ufCnN9y/ntCrWOlBdNemF2gcQrID2+5Z1dnZjQ8f0eDImRc/olQAu+ M3yzTu7SX9ijjohj8wkcnevV+egnmAsjrauREXYCA1FP+1yFQ2hZuVItwiwdJ/7o5Wub V4Qw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b32si415549pgb.345.2019.06.12.11.03.42; Wed, 12 Jun 2019 11:03:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2501929AbfFLPON (ORCPT + 99 others); Wed, 12 Jun 2019 11:14:13 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:46152 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729267AbfFLPNQ (ORCPT ); Wed, 12 Jun 2019 11:13:16 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 4543B803BC; Wed, 12 Jun 2019 17:13:13 +0200 (CEST) Date: Wed, 12 Jun 2019 17:13:12 +0200 From: Sam Ravnborg To: Shobhit Kukreti Cc: Lee Jones , Daniel Thompson , Jingoo Han , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] video: backlight: Replace old GPIO APIs with GPIO Consumer APIs for sky81542-backlight driver Message-ID: <20190612151312.GB5030@ravnborg.org> References: <20190612043229.GA18179@t-1000> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612043229.GA18179@t-1000> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VcLZwmh9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=COmZixlhozaZKkr9zfUA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shobhit > - if (gpio_is_valid(pdata->gpio_enable)) { > - ret = devm_gpio_request_one(dev, pdata->gpio_enable, > - GPIOF_OUT_INIT_HIGH, "sky81452-en"); > + pdata->gpiod_enable = devm_gpiod_get(dev, "sk81452-en", GPIOD_OUT_HIGH); > + if (IS_ERR(pdata->gpiod_enable)) { > + long ret = PTR_ERR(pdata->gpiod_enable); In the old code the property was named "sky81452-en". In the new code the property is named "sk81452-en". Most likely a bug. Sam