Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2264151ybt; Tue, 16 Jun 2020 01:08:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEp5daZ4vYdxamhyk3QdrC2VkH4lB9PkLRI5oyKqqK4MZ145Zj0140wYcDcQzZwJoSzlbS X-Received: by 2002:a17:906:3154:: with SMTP id e20mr1684008eje.171.1592294920737; Tue, 16 Jun 2020 01:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592294920; cv=none; d=google.com; s=arc-20160816; b=SS7mx2+GC3pSQIZkBb+c0DP7c9xu06keHl8NoLcBmLssEI8fAQmMdOTZ5xl8q4VI/e dkeJ4kOZL/x0uxXs5jZfxgHqIaupSlVNJxtpZIcLvWqw3FshpAt7wJ9LfpRD+zTqt2Jl Zt1OYem8BGDTvnANTa2NFKdLA5Do8sa7AHX/avS3poKm00zzwU/qSkoYo61xy+aVpT8L cpsjf81s1J/FkRYClewqZu9es5YXgFtl7Z4FL8F//O+1WWw//sPkas4qsYwNemtaHxdB MCYE1V1mytssfx3TJdHKeSJMcRxZCAmLvVuHluPmq1zObOaKbUhxrusFalodvvGVMHhA l6Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nSbbk12sklznSzURmDgyRvyV4JyDaN7OpY0qUFnGrF0=; b=05Cd7HWtUZYC/kFnNTvsGhPRKGwkvkY+wahuHOy8z5SJmQJDNdmAzsN1JB/MNFuHh8 VhrIdHKIEDmYm18K4ifr6rB3wE1/YMMlOAmJ1F5oPWLZ/ffQoNpmQetQzul3i6AdetGa BMZ+2PIXfH/gBD3LmwiEP498sr/a0UtEK3+bvJu7T4KUeGc3m90iw2ND6ncMjaWwgP7D nxJI6QEkdWBa7ZiI2U+nnXpAZtfTX+xqUEbsnT5PERVCovYNPp0EBhMbXv39XA0fM1xS IQ7FRxpjt1GHTEQpjmHBN3bAjI7lPPL/47IrVtmRmx07z7GAMF8Jr2UDAWsRFu+3yeWt SNtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T6FxFVn1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd25si10475773edb.134.2020.06.16.01.08.17; Tue, 16 Jun 2020 01:08:40 -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; dkim=pass header.i=@linaro.org header.s=google header.b=T6FxFVn1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726222AbgFPIFo (ORCPT + 99 others); Tue, 16 Jun 2020 04:05:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbgFPIFd (ORCPT ); Tue, 16 Jun 2020 04:05:33 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 519ABC03E96A for ; Tue, 16 Jun 2020 01:05:32 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id j10so19703825wrw.8 for ; Tue, 16 Jun 2020 01:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=nSbbk12sklznSzURmDgyRvyV4JyDaN7OpY0qUFnGrF0=; b=T6FxFVn1hxbyVOJ1IyLfuqYj92YRLnRIsyx3/oowDA+x3BzDhwFFmEeKEnPEP9MPEA Q4cmnsQT8k+IMgfrS+3spLNWSL06RqN5ebkLysnP6qXhcUQk9AGZtEgX1tRfPkNPU28/ 4jJVm8GVo0U9VldN1mn1ClAGq/x7SH0XL66fJeIzZRX/G6Q1xsok0Y2PUuquOkR1aBlj tApAtsDp/nIGk0fmm6PqW/vfj/Q4Rw28Yj9ozigY3qyY7ZyVtXEVHsL7xsk+ercb4Sqv UZEfOeVoDSU05JYPGHHufWHF007CvNHJQzCssmMv5YBp5l3UD2RZwRoXhJzjSl2+bRq7 xLxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=nSbbk12sklznSzURmDgyRvyV4JyDaN7OpY0qUFnGrF0=; b=f9WEePo1j/1YDrL/W98n+sRNxQ0P/2LNWSIw/AMvO2DoDy1Zhj+ZkFM2dX3ltm6UkX O7/7rTD1IuazxjuzEbWn2/fTK0R21IM4UET1owXyq11wCSOEsMr6aliir0dvky8mq8sB 7TD/+SHd+1sJE0Wp2PD4m38wJkHAxkClwooXPa6niq/9cxacItRE9T9DjD43lIXJitzM c3VRNFqb3YhfdGZ2Uq9gQfN4nS5GhsRjtD5LJjg/OhUkr70FluwGRu5hM6XPjYFOAv1c JtvREuxTNX0AORO2Xd7v5VSs5wAK82A3QvLEeWZZYYpSlFDIiduzNulED7mdDvj4NDBh WL3g== X-Gm-Message-State: AOAM532W9RTNsSxsEGeQzwEvF2Oow98l9mGy39sZbOwTXoStotD+FIsB WO8mdEnd59+GpVwsIyBHJbmnOQ== X-Received: by 2002:adf:ec0a:: with SMTP id x10mr1682760wrn.130.1592294731087; Tue, 16 Jun 2020 01:05:31 -0700 (PDT) Received: from dell ([109.180.115.156]) by smtp.gmail.com with ESMTPSA id f2sm2679917wmj.39.2020.06.16.01.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 01:05:30 -0700 (PDT) Date: Tue, 16 Jun 2020 09:05:29 +0100 From: Lee Jones To: Wang Qing Cc: Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers/video/backlight: Use kobj_to_dev() instead Message-ID: <20200616080529.GK2608702@dell> References: <1592211242-31683-1-git-send-email-wangqing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1592211242-31683-1-git-send-email-wangqing@vivo.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Jun 2020, Wang Qing wrote: > 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 I've fixed the broken subject line. For future submissions, please use `git log --oneline -- ` to view the expected formatting for any given . Applied, thanks. > 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; > -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog