mirror of
https://github.com/torvalds/linux.git
synced 2026-09-26 01:52:03 +02:00
drm/sysfb: simpledrm: Inline simplefb_get_validated_int()
The helper simplefb_get_validated_int() is only a wrapper around drm_sysfb_get_validated_int(). Inline the function into its callers. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Maxime Ripard <mripard@kernel.org> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patch.msgid.link/20260625094509.157581-4-tzimmermann@suse.de
This commit is contained in:
parent
3a75a07619
commit
61ab4a942a
|
|
@ -41,13 +41,6 @@
|
|||
* Helpers for simplefb
|
||||
*/
|
||||
|
||||
static int
|
||||
simplefb_get_validated_int(struct drm_device *dev, const char *name,
|
||||
uint32_t value)
|
||||
{
|
||||
return drm_sysfb_get_validated_int(dev, name, value, INT_MAX);
|
||||
}
|
||||
|
||||
static const struct drm_format_info *
|
||||
simplefb_get_validated_format(struct drm_device *dev, const char *format_name)
|
||||
{
|
||||
|
|
@ -95,7 +88,7 @@ static int
|
|||
simplefb_get_stride_pd(struct drm_device *dev,
|
||||
const struct simplefb_platform_data *pd)
|
||||
{
|
||||
return simplefb_get_validated_int(dev, "stride", pd->stride);
|
||||
return drm_sysfb_get_validated_int(dev, "stride", pd->stride, INT_MAX);
|
||||
}
|
||||
|
||||
static const struct drm_format_info *
|
||||
|
|
@ -159,7 +152,7 @@ simplefb_get_stride_of(struct drm_device *dev, struct device_node *of_node)
|
|||
|
||||
if (ret)
|
||||
return ret;
|
||||
return simplefb_get_validated_int(dev, "stride", stride);
|
||||
return drm_sysfb_get_validated_int(dev, "stride", stride, INT_MAX);
|
||||
}
|
||||
|
||||
static const struct drm_format_info *
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user