Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1056831rwd; Tue, 13 Jun 2023 04:23:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6cI9+0hof6YxtySpGfR9afzQd8mql7EGiH5EFRFuHaZA5Jg3RszrjX9Rn01dbWznvK+gE1 X-Received: by 2002:a05:6a00:3a17:b0:64c:4f2f:a235 with SMTP id fj23-20020a056a003a1700b0064c4f2fa235mr14464166pfb.30.1686655415099; Tue, 13 Jun 2023 04:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686655415; cv=none; d=google.com; s=arc-20160816; b=m2d/4cr6lnx1bxekZzYR7SQXrJ067hNRW7YeycWr0/kELujBSAgQ/aMbEesizJozF2 yLldxUMzesYMW+3uPSlwbyDZEpW1x/f+xcU0KD6rTnl86Q1OFcp1KUVPSpTA4IDRUtnp hzx1iwNBYpWkqQj5IEo0eOCdsHu9GOc3bqL1lq6gufJSE1TgaYNwgBUH6a8PXnIs1Myf P/co85hjxuJdJu7A7y+B7GVncFNC8RhHbUXg/mzHxbrProit95vs78DhI4U1RbwU2oPR rq9OpVBdItn0eRh2nJLtR12LIjGMPDVRWXoY0X/hdQ1SlQBVlis4NKvISlTRxgyTJCNG dgRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=+MI7Ni+qjWp8SvGCdzhLbAUt0sOV82JpEEinTZWk2UY=; b=Q9VDOl6LWrDqKrr9Nqw6pk7W/EO+lwVaIxSHdk0QdqESzS2aa00XcSerZoKHIN/0RY V3hzPEEyhLAz+4y/LDjC5eOn8OnIrujom0rpqbUsYfAozJttJUrI+gkjgPPsKVxGSwbK dOG74hjBjlahv1C3qnGNTjdxFa0S5mnH+i/Qx6HUMqlRmlIsNjHoHIU6SLoLiECo8Pd1 t7soeNwzi+SJl+VCsa7sgU9UHPYOf1udgnajdA8RXp+FaO3vto7fBaQ3l/nW7q5aFgMC Afc9GlH4swNa4XlvP52opmBSmUiFGNculsatIcg7Dp0/VcUOX04s+61BDSz9BxgELGCa 3R1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=eCS0EqFg; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=wybfxsz9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r25-20020aa79639000000b0064d43f63156si8452097pfg.354.2023.06.13.04.23.22; Tue, 13 Jun 2023 04:23:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=eCS0EqFg; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=wybfxsz9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236391AbjFMLVW (ORCPT + 99 others); Tue, 13 Jun 2023 07:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239958AbjFMLJ7 (ORCPT ); Tue, 13 Jun 2023 07:09:59 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D43E10D8; Tue, 13 Jun 2023 04:09:58 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D24C9223E4; Tue, 13 Jun 2023 11:09:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686654596; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+MI7Ni+qjWp8SvGCdzhLbAUt0sOV82JpEEinTZWk2UY=; b=eCS0EqFgmVYxAU15AWAIaTjBSPXAKzgM4/BSXkBrpOQ45EsJ+AsASxrwwKaiLwjM01DvGV xeRBSH1eI2hFJ5A7Q7BCzv3+IFdn5iEH27pITakS1rAthy2/Sb2k5s5tJtQP79IR+cHKBk dWAmGkJjjxC8SG41QQH0ofmEFKtLGho= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686654596; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+MI7Ni+qjWp8SvGCdzhLbAUt0sOV82JpEEinTZWk2UY=; b=wybfxsz92wSMNNEGiUI9PWBGzPRVQxSkRhaqxQFXw//PwV7GKHcW5LWLyV5PBmLVvLMgRX sbT5sJRGw1qMrnCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8400013483; Tue, 13 Jun 2023 11:09:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QEUQH4ROiGR8CQAAMHmgww (envelope-from ); Tue, 13 Jun 2023 11:09:56 +0000 From: Thomas Zimmermann To: daniel@ffwll.ch, javierm@redhat.com, sam@ravnborg.org, deller@gmx.de, geert+renesas@glider.be, lee@kernel.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, dan.carpenter@linaro.org, michael.j.ruhl@intel.com Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sh@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Thomas Zimmermann Subject: [PATCH v3 02/38] backlight/bd6107: Rename struct bd6107_platform_data.fbdev to 'dev' Date: Tue, 13 Jun 2023 13:06:37 +0200 Message-ID: <20230613110953.24176-3-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230613110953.24176-1-tzimmermann@suse.de> References: <20230613110953.24176-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename struct bd6107_platform_data.fbdev to 'dev', as it stores a pointer to the Linux platform device; not the fbdev device. Makes the code easier to understand. Signed-off-by: Thomas Zimmermann Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Reviewed-by: Javier Martinez Canillas Reviewed-by: Sam Ravnborg Reviewed-by: Daniel Thompson --- drivers/video/backlight/bd6107.c | 2 +- include/linux/platform_data/bd6107.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/bd6107.c b/drivers/video/backlight/bd6107.c index e3410444ea235..fa3dd45c8f9d1 100644 --- a/drivers/video/backlight/bd6107.c +++ b/drivers/video/backlight/bd6107.c @@ -104,7 +104,7 @@ static int bd6107_backlight_check_fb(struct backlight_device *backlight, { struct bd6107 *bd = bl_get_data(backlight); - return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->device; + return !bd->pdata->dev || bd->pdata->dev == info->device; } static const struct backlight_ops bd6107_backlight_ops = { diff --git a/include/linux/platform_data/bd6107.h b/include/linux/platform_data/bd6107.h index 54a06a4d26186..596ca4f95cfa4 100644 --- a/include/linux/platform_data/bd6107.h +++ b/include/linux/platform_data/bd6107.h @@ -8,7 +8,7 @@ struct device; struct bd6107_platform_data { - struct device *fbdev; + struct device *dev; unsigned int def_value; }; -- 2.41.0