ARM Sunxi Platform Development
 help / color / mirror / Atom feed
From: "Jernej Škrabec" <jernej.skrabec@gmail.com>
To: "Chen-Yu Tsai" <wens@kernel.org>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Samuel Holland" <samuel@sholland.org>,
	"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: dri-devel@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org,
	linux-sunxi@lists.linux.dev
Subject: Re: [PATCH] drm/sun4i: Don't include <linux/mod_devicetable.h>
Date: Tue, 01 Dec 2026 06:09:35 +0100	[thread overview]
Message-ID: <WMLtCK3qTbqqTj2rfLl4QQ@gmail.com> (raw)
In-Reply-To: <ca82e40c0da8aeb4ca8cbd5f9fe0fb8a8724c4c4.1796073822.git.u.kleine-koenig@baylibre.com>

Dne ponedeljek, 30. november 2026 ob 22:24:29 Srednjeevropski standardni čas je Uwe Kleine-König napisal(a):
> <linux/mod_devicetable.h> provides many *_device_id structs, the sun4i
> drm driver only uses struct of_device_id. (See
> 
> 	git grep -oE "\<(acpi_device_id|amba_id|ap_device_id|apr_device_id|auxiliary_device_id|bcma_device_id|ccw_device_id|cdx_device_id|coreboot_device_id|css_device_id|dfl_device_id|dmi_(device|system)_id|eisa_device_id|fsl_mc_device_id|hda_device_id|hid_device_id|hv_vmbus_device_id|i2c_device_id|i3c_device_id|ieee1394_device_id|input_device_id|ipack_device_id|isapnp_device_id|ishtp_device_id|mcb_device_id|mdio_device_id|mei_cl_device_id|mhi_device_id|mips_cdmm_device_id|of_device_id|parisc_device_id|pci_device_id|pci_epf_device_id|pcmcia_device_id|platform_device_id|pnp_(card_)?device_id|rio_device_id|rpmsg_device_id|sdio_device_id|sdw_device_id|serio_device_id|slim_device_id|spi_device_id|spmi_device_id|ssam_device_id|ssb_device_id|tb_service_id|tee_client_device_id|typec_device_id|ulpi_device_id|usb_device_id|vchiq_device_id|vio_device_id|virtio_device_id|wmi_device_id|x86_(cpu|device)_id|zorro_device_id|cpu_feature)\>" drivers/gpu/drm/sun4i/
> 
> .)
> 
> So only include <linux/device-id/of.h> which is enough to provide
> struct of_device_id and doesn't introduce all the other structs and thus
> reduces the build dependencies.
> 
> With the goal to remove <linux/mod_devicetable.h> this brings us one
> step further.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej

> ---
>  drivers/gpu/drm/sun4i/sun4i_frontend.h | 2 +-
>  drivers/gpu/drm/sun4i/sun4i_tcon.h     | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/sun4i/sun4i_frontend.h b/drivers/gpu/drm/sun4i/sun4i_frontend.h
> index 61c24088772c..760590f67862 100644
> --- a/drivers/gpu/drm/sun4i/sun4i_frontend.h
> +++ b/drivers/gpu/drm/sun4i/sun4i_frontend.h
> @@ -8,7 +8,7 @@
>  #define _SUN4I_FRONTEND_H_
>  
>  #include <linux/list.h>
> -#include <linux/mod_devicetable.h>
> +#include <linux/device-id/of.h>
>  
>  #define SUN4I_FRONTEND_EN_REG			0x000
>  #define SUN4I_FRONTEND_EN_EN				BIT(0)
> diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h b/drivers/gpu/drm/sun4i/sun4i_tcon.h
> index fa23aa23fe4a..ee2c9927a941 100644
> --- a/drivers/gpu/drm/sun4i/sun4i_tcon.h
> +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.h
> @@ -14,7 +14,7 @@
>  
>  #include <linux/kernel.h>
>  #include <linux/list.h>
> -#include <linux/mod_devicetable.h>
> +#include <linux/device-id/of.h>
>  #include <linux/reset.h>
>  
>  #define SUN4I_TCON_GCTL_REG			0x0
> 
> base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
> 





      reply	other threads:[~2026-12-01  5:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 21:24 [PATCH] drm/sun4i: Don't include <linux/mod_devicetable.h> Uwe Kleine-König
2026-12-01  5:09 ` Jernej Škrabec [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=WMLtCK3qTbqqTj2rfLl4QQ@gmail.com \
    --to=jernej.skrabec@gmail.com \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=samuel@sholland.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    --cc=u.kleine-koenig@baylibre.com \
    --cc=wens@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox