Skip to content

Commit d5ab2b4

Browse files
jnikulaairlied
authored andcommitted
drm: drop drm_get_connector_name() and drm_get_encoder_name()
No longer used or needed as the structs have a name field. Acked-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 83a8cfd commit d5ab2b4

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

‎drivers/gpu/drm/drm_crtc.c‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -256,26 +256,6 @@ void drm_connector_ida_destroy(void)
256256
ida_destroy(&drm_connector_enum_list[i].ida);
257257
}
258258

259-
/**
260-
* drm_get_encoder_name - return a string for encoder
261-
* @encoder: the encoder to get name for
262-
*/
263-
const char *drm_get_encoder_name(const struct drm_encoder *encoder)
264-
{
265-
return encoder->name;
266-
}
267-
EXPORT_SYMBOL(drm_get_encoder_name);
268-
269-
/**
270-
* drm_get_connector_name - return a string for connector
271-
* @connector: the connector to get name for
272-
*/
273-
const char *drm_get_connector_name(const struct drm_connector *connector)
274-
{
275-
return connector->name;
276-
}
277-
EXPORT_SYMBOL(drm_get_connector_name);
278-
279259
/**
280260
* drm_get_connector_status_name - return a string for connector status
281261
* @status: connector status to compute name of

‎include/drm/drm_crtc.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,6 @@ extern int drm_crtc_check_viewport(const struct drm_crtc *crtc,
909909

910910
extern void drm_encoder_cleanup(struct drm_encoder *encoder);
911911

912-
extern const char *drm_get_connector_name(const struct drm_connector *connector);
913912
extern const char *drm_get_connector_status_name(enum drm_connector_status status);
914913
extern const char *drm_get_subpixel_order_name(enum subpixel_order order);
915914
extern const char *drm_get_dpms_name(int val);
@@ -972,7 +971,6 @@ extern int drm_mode_create_tv_properties(struct drm_device *dev, int num_formats
972971
char *formats[]);
973972
extern int drm_mode_create_scaling_mode_property(struct drm_device *dev);
974973
extern int drm_mode_create_dirty_info_property(struct drm_device *dev);
975-
extern const char *drm_get_encoder_name(const struct drm_encoder *encoder);
976974

977975
extern int drm_mode_connector_attach_encoder(struct drm_connector *connector,
978976
struct drm_encoder *encoder);

0 commit comments

Comments
 (0)