Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13708750pxu; Mon, 4 Jan 2021 02:10:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzF3oECkHo9T9+Uh+4goQ9waeX6e/bZV2gpSCg1Eq0mBfnzfOVezHIot+B2heH5IaKuPI3z X-Received: by 2002:a17:906:3fc4:: with SMTP id k4mr33204303ejj.137.1609755004809; Mon, 04 Jan 2021 02:10:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609755004; cv=none; d=google.com; s=arc-20160816; b=ZdJgzXJPQT89oeAOq+wnJytF3DOZi98To0CKR7zlEuxdoYv/VtFUOlm3jKzaNNJkLQ rFrF2GMf3ggHyjktwc002k56Wtk1HaB6cj2Ld65h1KhTHzyzq4p86F9fvCi2xFbg6EMV KWvoOplYwcXC1iiLkMgINdpYwgwDGX4oefRwIDQgZLR7RMjiUFBZ6w8RhRElrdoDdxza 3Mn+wjJdA/sG/oJBL1Cn/NP+oGD2HvwVBq7r/yWl350zY6JmyYOLlzeONMt45f0g7YYh ktoP3gIkMNHznLm8a0+p28b/xPl0hG18UOOGKAtXFLFxm1vXD2LS2Z+8NhxV2IMVym91 qEkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=miG7CO4g5j20n9mrQMJx+RS21ZtCLqOgtOcLQw9KSDs=; b=jFBn0VIg1ORVnTmOKZQO7+pOfrxj0zjFVEuIQDVW/e9tRT3TnqxOLE1UI8awmw+1tq OBWDRraoaQ33GizzdykD6dKfy64VUnBtlOIYnegTOURDopwQs8T/lYzhTBPxOV652WMc GR1VXY34heEyXwNf+s9Vgk6nDzsUAWYO3/YI7Cq7ozTGtMSXfOdL9PK0u0vfsIDGYy4D a99SPQkLwAdaapQ+rM3vIDmKHO3ZI+kJiAnIIBOEdTignHiTIktYhT6VRnRrVRnCrKBU LN4B+UDlPbhCj5BbAJ4YY1m+Odxx0OQVphULWlstFKBU+kn83t/dRSoVg/DiNxcPgQcs Jzzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lg7fUwr3; 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 a14si29501736eds.103.2021.01.04.02.09.41; Mon, 04 Jan 2021 02:10:04 -0800 (PST) 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=Lg7fUwr3; 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 S1726236AbhADKIl (ORCPT + 99 others); Mon, 4 Jan 2021 05:08:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726026AbhADKIk (ORCPT ); Mon, 4 Jan 2021 05:08:40 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16092C061793 for ; Mon, 4 Jan 2021 02:08:00 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id e25so18771934wme.0 for ; Mon, 04 Jan 2021 02:08:00 -0800 (PST) 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:in-reply-to; bh=miG7CO4g5j20n9mrQMJx+RS21ZtCLqOgtOcLQw9KSDs=; b=Lg7fUwr3AMMbu21IW1G8pugaRA5SNCJaW71dzVrsNi0eLfCFI6DLso9TPduv3Fwl+d F8LBc9rpDsiZlgcDymsDqFXHeGQ9r79AQg0D8eJtYMk+fRn4gqtUSNEW4zSUb4/s4UjB orcsSCCOenu3XQzjy1ErOHJIZAOdGEJ0t7uSFKz65w56ete2sthEifuLASHttKbuRRma paMnaDaig0mM0Qmd536zabVBAHcl9UN2JmSKpMU5UGtvh/aQGTcL7X24uRO6mYjwJdwW LQwH9V1M3c7Ky/qU9v0QCX1PAOJPuRZolAzh7zseO9iVcUu0SIVFcSPqQsWkkpbxubSu Rzew== 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:in-reply-to; bh=miG7CO4g5j20n9mrQMJx+RS21ZtCLqOgtOcLQw9KSDs=; b=Dj0Met4chED+KsB83mNQM5nkVgsG8ELqwa4tmoKgrsE1acfdzikZV9IlVSH4SFaGRk wdah0supB+H+0cucwjneXkmWOOrutL61zVDCKcV5QWQEmdjQBG8G3rHHNSOanAwQLF5O BSRHhXSuavQpQcDi2Apl25HKoOmYP7bQsNOFDZLziDYrJGgsp0eR9M6NXhPajVJQn0ZS pz/qhZ9GlDX47AZrnQ2y1ivAzryIWCpUqu0EwKMTc+GYS7Wu+lAkO6htj75oi4BR1wM2 1elm4NR1rI3YEHrNgMEn9izLf+j3WjUesGaNDWLrDEwjpgTm1ZAcnP8I9m2L39Pdw7c9 9Kig== X-Gm-Message-State: AOAM5337yxbwqw1rKzCT15MZG36I9xCnh2NeHBqGVU5lklrRQ8xz2zNM C8qXJNZ6+yBP0/JownYIbbHdYQ== X-Received: by 2002:a1c:7d58:: with SMTP id y85mr26041528wmc.50.1609754878758; Mon, 04 Jan 2021 02:07:58 -0800 (PST) Received: from holly.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id o23sm95611006wro.57.2021.01.04.02.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 02:07:58 -0800 (PST) Date: Mon, 4 Jan 2021 10:07:56 +0000 From: Daniel Thompson To: Zheng Yongjun Cc: lee.jones@linaro.org, jingoohan1@gmail.com, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] video: backlight: use DEFINE_MUTEX (and mutex_init() had been too late) Message-ID: <20210104100756.sjpzzchy4tklt2rd@holly.lan> References: <20201223141035.32178-1-zhengyongjun3@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201223141035.32178-1-zhengyongjun3@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 23, 2020 at 10:10:35PM +0800, Zheng Yongjun wrote: > Signed-off-by: Zheng Yongjun Can you explain the Subject for this patch in more detail? If this patch is required to correct a bug then it looks to me like it is incomplete. Daniel. > --- > drivers/video/backlight/backlight.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c > index 537fe1b376ad..d7a09c422547 100644 > --- a/drivers/video/backlight/backlight.c > +++ b/drivers/video/backlight/backlight.c > @@ -64,7 +64,7 @@ > */ > > static struct list_head backlight_dev_list; > -static struct mutex backlight_dev_list_mutex; > +static DEFINE_MUTEX(backlight_dev_list_mutex); > static struct blocking_notifier_head backlight_notifier; > > static const char *const backlight_types[] = { > @@ -757,7 +757,6 @@ static int __init backlight_class_init(void) > backlight_class->dev_groups = bl_device_groups; > backlight_class->pm = &backlight_class_dev_pm_ops; > INIT_LIST_HEAD(&backlight_dev_list); > - mutex_init(&backlight_dev_list_mutex); > BLOCKING_INIT_NOTIFIER_HEAD(&backlight_notifier); > > return 0; > -- > 2.22.0 >