Revert "ANDROID: driver: gpu: drm: add notifier for panel related events"

Necessary changes to support notifier for panel related events
have been made to vendor specific drivers. No need to retain
support in DRM framework

This reverts commit 310dd4fe83.

Change-Id: I9528c01559e8e84497b238719833e07c736b36bf
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This commit is contained in:
Narendra Muppalla 2020-10-13 15:47:21 -07:00 committed by Alistair Delva
parent 88adaf726e
commit 7db785cf24
3 changed files with 0 additions and 61 deletions

View File

@ -58,7 +58,6 @@ void drm_panel_init(struct drm_panel *panel, struct device *dev,
const struct drm_panel_funcs *funcs, int connector_type)
{
INIT_LIST_HEAD(&panel->list);
BLOCKING_INIT_NOTIFIER_HEAD(&panel->nh);
panel->dev = dev;
panel->funcs = funcs;
panel->connector_type = connector_type;
@ -342,27 +341,6 @@ int drm_panel_of_backlight(struct drm_panel *panel)
EXPORT_SYMBOL(drm_panel_of_backlight);
#endif
int drm_panel_notifier_register(struct drm_panel *panel,
struct notifier_block *nb)
{
return blocking_notifier_chain_register(&panel->nh, nb);
}
EXPORT_SYMBOL_GPL(drm_panel_notifier_register);
int drm_panel_notifier_unregister(struct drm_panel *panel,
struct notifier_block *nb)
{
return blocking_notifier_chain_unregister(&panel->nh, nb);
}
EXPORT_SYMBOL_GPL(drm_panel_notifier_unregister);
int drm_panel_notifier_call_chain(struct drm_panel *panel,
unsigned long val, void *v)
{
return blocking_notifier_call_chain(&panel->nh, val, v);
}
EXPORT_SYMBOL_GPL(drm_panel_notifier_call_chain);
MODULE_AUTHOR("Thierry Reding <treding@nvidia.com>");
MODULE_DESCRIPTION("DRM panel infrastructure");
MODULE_LICENSE("GPL and additional rights");

View File

@ -40,7 +40,6 @@ struct drm_encoder;
struct drm_property;
struct drm_property_blob;
struct drm_printer;
struct drm_panel;
struct edid;
struct i2c_adapter;
@ -1507,13 +1506,6 @@ struct drm_connector {
/** @hdr_sink_metadata: HDR Metadata Information read from sink */
struct hdr_sink_metadata hdr_sink_metadata;
/**
* @panel:
*
* Can find the panel which connected to drm_connector.
*/
struct drm_panel *panel;
};
#define obj_to_connector(x) container_of(x, struct drm_connector, base)

View File

@ -27,23 +27,6 @@
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/list.h>
#include <linux/notifier.h>
/* A hardware display blank change occurred */
#define DRM_PANEL_EVENT_BLANK 0x01
/* A hardware display blank early change occurred */
#define DRM_PANEL_EARLY_EVENT_BLANK 0x02
enum {
/* panel: power on */
DRM_PANEL_BLANK_UNBLANK,
/* panel: power off */
DRM_PANEL_BLANK_POWERDOWN,
};
struct drm_panel_notifier {
void *data;
};
struct backlight_device;
struct device_node;
@ -186,13 +169,6 @@ struct drm_panel {
* Panel entry in registry.
*/
struct list_head list;
/**
* @nh:
*
* panel notifier list head
*/
struct blocking_notifier_head nh;
};
void drm_panel_init(struct drm_panel *panel, struct device *dev,
@ -205,13 +181,6 @@ void drm_panel_remove(struct drm_panel *panel);
int drm_panel_attach(struct drm_panel *panel, struct drm_connector *connector);
void drm_panel_detach(struct drm_panel *panel);
int drm_panel_notifier_register(struct drm_panel *panel,
struct notifier_block *nb);
int drm_panel_notifier_unregister(struct drm_panel *panel,
struct notifier_block *nb);
int drm_panel_notifier_call_chain(struct drm_panel *panel,
unsigned long val, void *v);
int drm_panel_prepare(struct drm_panel *panel);
int drm_panel_unprepare(struct drm_panel *panel);