Received: by 10.223.176.5 with SMTP id f5csp1855265wra; Sun, 28 Jan 2018 09:16:54 -0800 (PST) X-Google-Smtp-Source: AH8x224xzGg/c13yHUShO2svpo1T9uZEUb101zll8XFkCPjL13dK4X3wtawzWs5H51rT2OT/HHcf X-Received: by 10.98.171.7 with SMTP id p7mr24870091pff.138.1517159814357; Sun, 28 Jan 2018 09:16:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517159814; cv=none; d=google.com; s=arc-20160816; b=LskIsE8cmXQLDboqgRHMv1OajlZNgfSXnbuaFxC7OxFcDEpSxhL9cGX7OU92f0VHfa 4heWEw0G2IGZbkG8IX+2TPh6TKTxbDc9UVHT6mu3OywFL7yhpIoEfptWF/k2vm4GR/rV 0EteZvzxZPG/EbYU4WT7CaL7biALkjS4FELXkTZHyDP8DQjQpvk43WS6VtqX40N2J4WP b+/lsL1MnFJcB72kilS21C7q66MTeHXs5dQ8yeH39ZCKB9MfuZcuPCSqsKvHtRwQ88TM NBYYuJ61wH6YfY57G8cbmHtDklCkGhoGOHLZc0ihKnf3SQPCWYw3fwFPm2WO6ENgjP18 BL7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=tJCmymkxpodzHWS3brwP+CsCN/GZTyPd7oFAzT9Gdfc=; b=mhbT9TCm/YN82R9aWzG+E6SboeNVSiEFSbJ0fusIok4rkRRRYDeEyXmP+HolcKftMh JXkgD9ZwDyB3qpUnD4spZMMmNnJ6Vc/2FkW/KrEVZ9JJjF7c0xLM0jNcl+z5WRk2Atmc 3cUnINEZgIaoIGBlQrW/r3zFHIhe0eOhkEybmkuhHWw9f260MZTmdTPxDjU3ZU9Ndqt9 S3J326pCyiX6e3SRihdIvTMVitS/z6KEf4i06+PSTOaYXdh/BcqJFxz8mXrABKwkcuh5 8oSpQ+KIGdaxlxK0Tq1uCS3AwcH/lGBNtu4JFGBSoNJKamqApvuDIbRC6S9guJ6Ygjg0 Ks1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WcVVQmY6; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4-v6si7353166plp.818.2018.01.28.09.16.06; Sun, 28 Jan 2018 09:16:54 -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=@gmail.com header.s=20161025 header.b=WcVVQmY6; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752099AbeA1RPL (ORCPT + 99 others); Sun, 28 Jan 2018 12:15:11 -0500 Received: from mail-qt0-f178.google.com ([209.85.216.178]:45136 "EHLO mail-qt0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbeA1RPK (ORCPT ); Sun, 28 Jan 2018 12:15:10 -0500 Received: by mail-qt0-f178.google.com with SMTP id x27so9941795qtm.12 for ; Sun, 28 Jan 2018 09:15:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tJCmymkxpodzHWS3brwP+CsCN/GZTyPd7oFAzT9Gdfc=; b=WcVVQmY6COE/aT+m84iPd6a0FkuD03XanHw1nkGY8iKmjj6HrtnDiQfxj+LTmluTu8 qal0HJVc9L+e51BmI2GdOuM5VGal9m/oMMB1nx7fQJmv4Ap7Eq/lwusAhxAbIcU4zirm dQoWbpHf/pch8opcOHcMPlgcj3eElyzhRhwBNmYwpnc60Ab8K/qWk6QuRK5WoSHGjibg kK3cwHm0NDdaWUzxnkBXMYiLHg0igYql6c6SZzwUGE+zrJdG8weNc61U5+17GRVzgzLK LKxmvNifhIqHCfiVHT/XWWnuo8N6MANoC9UJZIovPfolrl5TxfhuDiiDa2cBSm8+uboA 1ivw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tJCmymkxpodzHWS3brwP+CsCN/GZTyPd7oFAzT9Gdfc=; b=OJrAbbO1GXKj4Q3x/nBFp0UhUxWMZS8RIZfMNKwNrQATOqRSlZyo5o897Xok+/2GFX 7hIguDLl6vUzgHM9z2WmAEaaqC3FCbGuwmOcSlxMZkvjiwkc62jh42kVXA7YOVjsuLgs tS4g2QvtNVnZiIh3s66nHSrekoiYilY+/ieHb7iQ82UTLnOu/M+rrtFZbo8ss8byOt1p eTRjNmOAyv0GeEQBQiqeSDTIDrk50BuvAxEM4mwoRj23Fh32zlyMCqP9MqhemehTdyYo jlFBvePk0zU4YYwySuNoIEq6JQQw+5JU6TyRCOSuuAPEMVkZ8cfbkmtJ8oZDV5wps6Y+ CSHA== X-Gm-Message-State: AKwxyteuQzJ5eA8PWUdxQ/hVwpoaYdngKv/NcbqoKoM4NlB9FzVHPaTz w45B6T/VugQk8FH5nZtt0JHzfSvvdCCeKAe3gW8= X-Received: by 10.237.32.68 with SMTP id 62mr28126572qta.340.1517159709361; Sun, 28 Jan 2018 09:15:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.175.35 with HTTP; Sun, 28 Jan 2018 09:15:08 -0800 (PST) In-Reply-To: <116d160ba78be2e6dcbdcb6855622bce67da9472.1516632388.git.meghana.madhyastha@gmail.com> References: <116d160ba78be2e6dcbdcb6855622bce67da9472.1516632388.git.meghana.madhyastha@gmail.com> From: Andy Shevchenko Date: Sun, 28 Jan 2018 19:15:08 +0200 Message-ID: Subject: Re: [PATCH v18 03/10] video: backlight: Add of_find_backlight helper in backlight.c To: Meghana Madhyastha Cc: Lee Jones , Daniel Thompson , Jingoo Han , Thierry Reding , =?UTF-8?Q?Noralf_Tr=C3=B8nnes?= , Tomi Valkeinen , Daniel Vetter , Sean Paul , dri-devel@lists.freedesktop.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 22, 2018 at 4:51 PM, Meghana Madhyastha wrote: > Add of_find_backlight, a helper function which is a generic version > of tinydrm_of_find_backlight that can be used by other drivers to avoid > repetition of code and simplify things. > +struct backlight_device *of_find_backlight(struct device *dev) It looks strange that of_ prefixed function takes struct device instead of struct device_node. -- With Best Regards, Andy Shevchenko