Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1505061ybt; Mon, 15 Jun 2020 01:56:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww1dx4ePvEU+soEghWPqeYk/pxR2wjBJPlzd/xdX2uZaA9TjGX7mFAmgvqt0G57JKIB+Qe X-Received: by 2002:a17:906:2bd8:: with SMTP id n24mr12830112ejg.83.1592211396465; Mon, 15 Jun 2020 01:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592211396; cv=none; d=google.com; s=arc-20160816; b=xQCPhCHoA8mpvqrSdcSAY4fHXu3y0csAUqgu4KpdmdmxgOGx0PzI6VzJRY+OfkKWEJ g83fZsf9O/Df7RoJh0O9l3nx0ZE97Z7fHGV0/0poOopGPxti6rE2Rk9Igj5mDDGXq4+C CzwQN2TI7KlicFHyP0RKCnoJKYG5D3+mFJp4/gLK5vx45aMs0xxxti95T1L0vT7OGDuH 7DcGexWnkXgbvNfA8KyIl1oUaHvt/jz9BcQv3NmNFok2zXYL4HTeiqqmHJe+9ySScFxG EzQV4rCGq9BaX2doo+BN0YHPVFsxNEHCwtNamO9+tH5e9H/hoIEkH+7RYYoVUE0NlYlF fWMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=m1vHIYjbbubekBSqiNN9RrzsI+rm7XlrEtbNf2bDrHw=; b=lA8jEpoRpKqfrGCpyLHVj+nJQArgllSuT+378RiAxezDk1Wq+PhJ1op+6lbZlVGf7t +1Gnlszl5kWm28RLEeqUMIPTe4eGXEBucWBPXxDP94SEQtE/e3JEMlkwxG87oelJEMLV /jk8gZpu4PLiq/8g6W8u9vNvV83wWoh1/lGdr+aSGlSk3gwHf1da5x4I6cU5fE1PnQA4 AkhISNHFqXMsCFfTHkM9DPxBNrwoiv/T/XQvr7WyErrQtAP8D+SMblqrM4rPh6B+z0Ym O5PfV2aQKUyLFJzlnO6DrZWwV3qEEXdnAtUcB6511xIeSVUXZoVNafCbAKPWuFKA+Lh6 jhqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si8230661edy.272.2020.06.15.01.56.14; Mon, 15 Jun 2020 01:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729071AbgFOIyL (ORCPT + 99 others); Mon, 15 Jun 2020 04:54:11 -0400 Received: from m17617.mail.qiye.163.com ([59.111.176.17]:17256 "EHLO m17617.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728522AbgFOIyL (ORCPT ); Mon, 15 Jun 2020 04:54:11 -0400 Received: from vivo-HP-ProDesk-680-G4-PCI-MT.vivo.xyz (unknown [58.251.74.226]) by m17617.mail.qiye.163.com (Hmail) with ESMTPA id B251D261613; Mon, 15 Jun 2020 16:54:07 +0800 (CST) From: Wang Qing To: Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Wang Qing Subject: [PATCH] drivers/video/backlight: Use kobj_to_dev() instead Date: Mon, 15 Jun 2020 16:54:02 +0800 Message-Id: <1592211242-31683-1-git-send-email-wangqing@vivo.com> X-Mailer: git-send-email 2.7.4 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZSkwZSU1NGU1PT01JVkpOQklJSkpJT0NJSk1VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKTFVKS0tZBg++ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PT46Ayo4Hzg5CQhOSihMSxEW M0kaFFZVSlVKTkJJSUpKSU9DTk1DVTMWGhIXVQwaFRwKEhUcOw0SDRRVGBQWRVlXWRILWUFZTkNV SU5KVUxPVUlJTVlXWQgBWUFKQ0NINwY+ X-HM-Tid: 0a72b72f93709375kuwsb251d261613 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use kobj_to_dev() instead of container_of() Signed-off-by: Wang Qing --- drivers/video/backlight/lm3533_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 drivers/video/backlight/lm3533_bl.c diff --git a/drivers/video/backlight/lm3533_bl.c b/drivers/video/backlight/lm3533_bl.c index ee09d1b..0c7830f --- a/drivers/video/backlight/lm3533_bl.c +++ b/drivers/video/backlight/lm3533_bl.c @@ -235,7 +235,7 @@ static struct attribute *lm3533_bl_attributes[] = { static umode_t lm3533_bl_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n) { - struct device *dev = container_of(kobj, struct device, kobj); + struct device *dev = kobj_to_dev(kobj); struct lm3533_bl *bl = dev_get_drvdata(dev); umode_t mode = attr->mode; -- 2.7.4