Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3275730ybd; Fri, 28 Jun 2019 05:59:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjI/jEWviHF7EQRCQkG0e3sBZ2+ARPdf6PXiyRlsRfr48lPonsBd6e6CBiUbVNwMK+5naQ X-Received: by 2002:a17:902:820c:: with SMTP id x12mr11590410pln.216.1561726753993; Fri, 28 Jun 2019 05:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561726753; cv=none; d=google.com; s=arc-20160816; b=v0FXTdJsl5lw5Do9mjlNz5EybbWV9IVOB5IXzXYc7I6b4dLgXknJ6Fen7RXJXMaZ3J umVvV9brMscgmFNLlRJ738pP4wIQJsCR5wxjxs9I/iodZWW+AI1JZRpmWG8RhH0OXJm6 TrQ+9cWuVEtEDYb4/RvoTKzQBi3PlRgSStdunG3X+kUp954FCGV572plR1XQt36w1bnM lg03S1/5/oS448j2rZDfFyydIzl157nCCxeVE6dL/FX48eU0AFVONkJpcYmIN6Yk4pG6 sSsFnHfZu8nVxnQsX04VNGNMFuFOblDNhI05E558x+Hl0HMwsjq2DmKBh82SYSEbntuP Zgwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=+fXjqMD80dTEeznXW+urjzkEHk1O/732pqOUC3IDfkY=; b=gSxI2DyUcVahtqy5OqaCfgc6CUDtxZTNmKmwbmpbv4O7oiy0iw4eLGNYAYNceXK+Ge fTufGdp0J+sKXuWBPfO+gH+X03GRZDBMFLsG/r2MrUphytu8S0Y2Z0JNamoYXXLXWeh/ /TTtqNjUeSV71wi1W6T4V85krQ4+3Vfdplwvd4Y1LtcYb+8AqyFe+n2t10U1uTUXEb4b apeYJ6QnLElV/j625vE+99HHU1FOQKTAxXzc0WCxEzEbeUns7w2pBmBGkGBTQACUwMyW DrLgfHLKISDYvECFPVhybH9rH23AIwYwDcJ8ghYVblbjpOwuSsND7E8e4cb/Jz7z4sBw 6NaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ZkaWLVUL; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si1995257pgq.61.2019.06.28.05.58.57; Fri, 28 Jun 2019 05:59:13 -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=@samsung.com header.s=mail20170921 header.b=ZkaWLVUL; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727043AbfF1M6k (ORCPT + 99 others); Fri, 28 Jun 2019 08:58:40 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:58513 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726558AbfF1M6k (ORCPT ); Fri, 28 Jun 2019 08:58:40 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190628125838euoutp023ff7696965fe6d5d061433d89bcf68a8~sXi0laFBb0793207932euoutp021 for ; Fri, 28 Jun 2019 12:58:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190628125838euoutp023ff7696965fe6d5d061433d89bcf68a8~sXi0laFBb0793207932euoutp021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1561726718; bh=+fXjqMD80dTEeznXW+urjzkEHk1O/732pqOUC3IDfkY=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=ZkaWLVUL/EDXvoRU+nPTD+5uB4JPBVfqwGgNBXD662dRx11Kh6eZQk3XZAse4DO8E 8dLELWVvCGbqSzbr7mzD6px75tuYqA64KoyUkuOyWvhUdWG4OI94vEbExQeN+c1AKC vacLiBG9VSo9sPkdgYgmskyWCT2TGCHyIUeH3FnQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190628125837eucas1p117ade18f8ad2f92ca5b5d444c1f33336~sXiz1d8Ax0757307573eucas1p1P; Fri, 28 Jun 2019 12:58:37 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 30.5A.04377.DFE061D5; Fri, 28 Jun 2019 13:58:37 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190628125836eucas1p26db88c2fc26c7fdfbc9015a0c5252e1a~sXiy5cATZ1701517015eucas1p2P; Fri, 28 Jun 2019 12:58:36 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190628125836eusmtrp282053a9d728b660cbaafa6575e430aee~sXiyrSAiU0722007220eusmtrp2m; Fri, 28 Jun 2019 12:58:36 +0000 (GMT) X-AuditID: cbfec7f4-12dff70000001119-98-5d160efdb846 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id C9.34.04140.CFE061D5; Fri, 28 Jun 2019 13:58:36 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190628125836eusmtip27d2be573ba8b7c8512826cc4a44f92b2~sXiyJxH5i0729607296eusmtip2e; Fri, 28 Jun 2019 12:58:36 +0000 (GMT) Subject: Re: [PATCH 01/12] backlight: gpio: allow to probe non-pdata devices from board files To: Bartosz Golaszewski Cc: Sekhar Nori , Kevin Hilman , Lee Jones , Daniel Thompson , Jingoo Han , David Lechner , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Bartosz Golaszewski From: Bartlomiej Zolnierkiewicz Message-ID: Date: Fri, 28 Jun 2019 14:58:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190625163434.13620-2-brgl@bgdev.pl> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0hTYRjG+87ZOTuOJp9z6atdGVRU5OwGJ5OoMDgFZf0RpCG68jStbcqW ZVclcuUiK5PKZSp2MS10WGhTKVrNaRdDFBPNZrXAyqXorAztcjxK/vf73vd5eJ8HPoZUuKlQ JtlwgDcaNDoVLZNUN4w0Lx3zD4oLf9eygPVdfy5ha3uqafZlX7eULckMYtuG+2n2ji9fyn66 /5Fg3cNOxOaNlhJs1cd2im3MGaDY1toCmn18zkask3P9HVlS7kZ7F8XZrd1Srqo8m+YGzzdR 3Nv2eppzn3UR3P2bGZyro4bghqrmbJPFyiITeV3yQd6oXpsgS3p9y0ekmun0rnOjVCbKpizI jwG8ErJa+0iBFfgOgpF6nQXJ/rEPwaClUSIuhhD0tYVNGjqbPlGiqBTBo+91SHx4EXwtyScs iGECcTw4zGrBoMQLobjiHSFoSOwk4XPrXVpY0DgCLp4uRwLL8Vp44jk1HkmC50OXrWw80gy8 E9wNNkrUBEBTvmc8kR9eAa/sDwmBSRwMnZ6iCZ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YwsqxhF UkuLc9Nzi430ihNzi0vz0vWS83M3MQKje9uxn1t2MHa9Cz7EKMDBqMTDu4BLLFaINbGsuDL3 EKMEB7OSCK/kOZFYId6UxMqq1KL8+KLSnNTiQ4ymQM9NZJYSTc4HJp68knhDU0NzC0tDc2Nz YzMLJXHeDoGDMUIC6YklqdmpqQWpRTB9TBycUg2MGldzvQSD45nTk++qz/W3jRc7Fi+Y08f9 VMd/gb/FUaUtznyRJ9s/zm59oHDm8oG7H7LCl0/64in6Q3vPulP/+pTOBZyd/sx/boxD3eU+ 89PKUzynRMza8rmYy/vs7saKNZ0hfHzGKTHxXnOW7L2ksJGFbx7fdo7o1y+19R1NJ/L/cdif eilJiaU4I9FQi7moOBEAbTZJqwQDAAA= X-CMS-MailID: 20190628125836eucas1p26db88c2fc26c7fdfbc9015a0c5252e1a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190625163457epcas3p2e246a27cb3ec0f0ffa48d32561ff3972 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190625163457epcas3p2e246a27cb3ec0f0ffa48d32561ff3972 References: <20190625163434.13620-1-brgl@bgdev.pl> <20190625163434.13620-2-brgl@bgdev.pl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/25/19 6:34 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Currently we can only probe devices that either use device tree or pass > platform data to probe(). Rename gpio_backlight_probe_dt() to > gpio_backlight_probe_prop() and use generic device properties instead > of OF specific helpers. Reverse the logic checking the presence of > platform data in probe(). This way we can probe devices() registered > from machine code that neither have a DT node nor use platform data. > > Signed-off-by: Bartosz Golaszewski Reviewed-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics