From patchwork Fri Sep 6 07:52:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13793554 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9BC054EB38; Fri, 6 Sep 2024 07:54:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725609285; cv=none; b=ObSen56xdrQ5glxPQUc7uN+ZTwUiKqOZN6WbdcG8hm9/8HsHMtE2/XNjoK1/C4ToihLXNqIQ1dUeCFVtRzK7wX7JLUxTSSM+mpj5HJZGUTcnLNbw82HR0cIwWFYMr4aOfdQvkKIlkHHcuZ1C4V8cHYvO0iih6/mWmeDdSyC3gF4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725609285; c=relaxed/simple; bh=k9P4ufS58qboPErYEk9lODLfVdW0zr8X7aQSg1l5SHo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PccGhTvzq6IHLY6nYgbTO8Yp6j3VFiMeBgwGWEma476DrCESpNdZDRVP1Szu718MPBEX6dngPhJqg3UNeTxJLOfJ6oWAOGsQUYmue4Dn7p0dZ660SKw+vZVBr0pI4i6AyokFDxYYP6uG/mWVtic9PXTwUERA+gqR6gBTH5Ls5VA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=B+S4Gv5t; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=lF2Df/YC; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=B+S4Gv5t; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=lF2Df/YC; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="B+S4Gv5t"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="lF2Df/YC"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="B+S4Gv5t"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="lF2Df/YC" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C392321A52; Fri, 6 Sep 2024 07:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1725609281; 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; bh=87fl2MCoeY8QpyfokYMs6ZI0jf6/3K0EdmasNLFFQhY=; b=B+S4Gv5t9azQPLm025cJroTFxhjyzv2iUXFcD8RQgls18Td1uHwCbQeAWehGzmMHaoTsfx XKDh2CdXqKEDhr/eq/KR4cntk3VdfyStfzBcF/pjbAcGlqIfNt1z3Q68FthtABUEMOdWW2 W+SuVeeu1YZ9ZqXDHk0y7QyjjR9TNAI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1725609281; 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; bh=87fl2MCoeY8QpyfokYMs6ZI0jf6/3K0EdmasNLFFQhY=; b=lF2Df/YCvk05Hk5jEU8izpj0FkWxYX7uVDvCxQb4/tZ55Cs9moLTSP261XIxKLrPmBc8wb KTZc65qmHn9DPjCg== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1725609281; 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; bh=87fl2MCoeY8QpyfokYMs6ZI0jf6/3K0EdmasNLFFQhY=; b=B+S4Gv5t9azQPLm025cJroTFxhjyzv2iUXFcD8RQgls18Td1uHwCbQeAWehGzmMHaoTsfx XKDh2CdXqKEDhr/eq/KR4cntk3VdfyStfzBcF/pjbAcGlqIfNt1z3Q68FthtABUEMOdWW2 W+SuVeeu1YZ9ZqXDHk0y7QyjjR9TNAI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1725609281; 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; bh=87fl2MCoeY8QpyfokYMs6ZI0jf6/3K0EdmasNLFFQhY=; b=lF2Df/YCvk05Hk5jEU8izpj0FkWxYX7uVDvCxQb4/tZ55Cs9moLTSP261XIxKLrPmBc8wb KTZc65qmHn9DPjCg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 628B7136A8; Fri, 6 Sep 2024 07:54:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id e8KqFkG12mbGPAAAD6G6ig (envelope-from ); Fri, 06 Sep 2024 07:54:41 +0000 From: Thomas Zimmermann To: lee@kernel.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, deller@gmx.de, bonbons@linux-vserver.org, jikos@kernel.org, bentiss@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, shawnguo@kernel.org, festevam@gmail.com Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org, Thomas Zimmermann Subject: [PATCH v2 00/28] backlight: lcd: Remove fbdev dependencies Date: Fri, 6 Sep 2024 09:52:14 +0200 Message-ID: <20240906075439.98476-1-tzimmermann@suse.de> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Score: -2.80 X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWELVE(0.00)[15]; MIME_TRACE(0.00)[0:+]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.de:mid]; FREEMAIL_TO(0.00)[kernel.org,linaro.org,gmail.com,gmx.de,linux-vserver.org,pengutronix.de]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; TO_DN_SOME(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FREEMAIL_ENVRCPT(0.00)[gmail.com,gmx.de] X-Spam-Flag: NO X-Spam-Level: This series removes most dependencies on fbdev from the lcd subsystem and its drivers. Patches 1 to 3 rework the fbdev notifier, the fbdev's fb_info can now refer to a dedicated lcd device, and lcd defines constants for power states. These changes resemble similar changes to the backlight code. Patches 4 to 19 update lcd drivers to the new interfaces and perform minor cleanups during the process. Patches 20 to 24 update fbdev drivers and patch 25 updates the picolcd driver from the hid subsystem. Patches 25 to 28 finally clean up various lcd interfaces and files. This patchset is part of a larger effort to implement the lcd code without depending on fbdev. Similar patches have been sent out for the backlight subsystem, such as in [1] and [2]. Hopefully this series can be merged at once through the lcd tree. v2: - use guard(mutex) (Daniel) - fix typos in various commit descriptions (Daniel) [1] https://patchwork.freedesktop.org/series/129782/ [2] https://patchwork.freedesktop.org/series/134718/ Thomas Zimmermann (28): backlight: lcd: Rearrange code in fb_notifier_callback() backlight: lcd: Test against struct fb_info.lcd_dev backlight: lcd: Add LCD_POWER_ constants for power states backlight: corgi_lcd: Use lcd power constants backlight: hx8357: Use lcd power constants backlight: ili922x: Use lcd power constants backlight: ili9320: Use lcd power constants backlight: jornada720_lcd: Include for IOMEM() macro backlight: jornada720_lcd: Use lcd power constants backlight: l4f00242t03: Use lcd power constants backlight: lms283gf05: Use lcd power constants backlight: lms501kf03: Remove unnecessary include of backlight: lms501kf03: Use lcd power constants backlight: ltv350qv: Use lcd power constants backlight: otm3225a: Use lcd power constants backlight: platform_lcd: Remove include statement for backlight: platform_lcd: Remove match_fb from struct plat_lcd_data backlight: platform_lcd: Use lcd power constants backlight: tdo24m: Use lcd power constants fbdev: clps711x-fb: Replace check_fb in favor of struct fb_info.lcd_dev fbdev: clps711x-fb: Use lcd power constants fbdev: imxfb: Replace check_fb in favor of struct fb_info.lcd_dev fbdev: imxfb: Use lcd power constants fbdev: omap: Use lcd power constants HID: picoLCD: Replace check_fb in favor of struct fb_info.lcd_dev backlight: lcd: Replace check_fb with controls_device backlight: lcd: Remove struct fb_videomode from set_mode callback backlight: lcd: Do not include in lcd header drivers/hid/hid-picolcd_fb.c | 4 ++ drivers/hid/hid-picolcd_lcd.c | 6 --- drivers/video/backlight/corgi_lcd.c | 17 ++++---- drivers/video/backlight/hx8357.c | 2 +- drivers/video/backlight/ili922x.c | 7 ++-- drivers/video/backlight/ili9320.c | 15 ++++--- drivers/video/backlight/jornada720_lcd.c | 10 ++--- drivers/video/backlight/l4f00242t03.c | 32 +++++++-------- drivers/video/backlight/lcd.c | 50 ++++++++++++++++++------ drivers/video/backlight/lms283gf05.c | 2 +- drivers/video/backlight/lms501kf03.c | 24 ++++++------ drivers/video/backlight/ltv350qv.c | 15 ++++--- drivers/video/backlight/otm3225a.c | 2 +- drivers/video/backlight/platform_lcd.c | 20 ++++------ drivers/video/backlight/tdo24m.c | 19 +++++---- drivers/video/fbdev/clps711x-fb.c | 29 ++++++-------- drivers/video/fbdev/imxfb.c | 32 ++++++--------- drivers/video/fbdev/omap/lcd_ams_delta.c | 8 ++-- include/linux/fb.h | 13 ++++++ include/linux/lcd.h | 29 ++++++++++---- include/video/platform_lcd.h | 3 -- 21 files changed, 181 insertions(+), 158 deletions(-)