[PATCH v3 3/6] drm/vc4: use new debugfs device-centered functions

Maxime Ripard maxime at cerno.tech
Thu Dec 8 12:11:31 UTC 2022


On Wed, Dec 07, 2022 at 10:23:22AM -0300, Maíra Canal wrote:
> Currently, vc4 has its own debugfs infrastructure that adds the debugfs
> files on drm_dev_register(). With the introduction of the new debugfs,
> functions, replace the vc4 debugfs structure with the DRM debugfs
> device-centered function, drm_debugfs_add_file().
> 
> Moreover, remove the explicit error handling of debugfs related functions,
> considering that the only failure mode is -ENOMEM and also that error
> handling is not recommended for debugfs functions, as pointed out in [1].
> 
> [1] https://lore.kernel.org/all/YWAmZdRwnAt6wh9B@kroah.com/
> 
> Signed-off-by: Maíra Canal <mcanal at igalia.com>

Reviewed-by: Maxime Ripard <maxime at cerno.tech>

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20221208/edd49128/attachment.sig>


More information about the dri-devel mailing list