static struct _backlight_ops *_backlight_ops;
static struct _backlight_ops* (*_get_backlight_ops)(void);
+static struct display_config* (*_get_display_config)(void);
static void touchscreen_wakeup_status(keynode_t *key, void *data)
{
{
int ret, val;
- _display_conf = dlsym(disp_plgn->handle, "display_conf");
- if (!_display_conf)
- _E("Failed to obtain address of display_conf, %s.", dlerror());
+ _get_display_config = dlsym(disp_plgn->handle, "get_display_config");
+ if (_get_display_config) {
+ _display_conf = _get_display_config();
+ if (!_display_conf)
+ _E("Failed to get display config.");
+ } else
+ _E("Failed to obtain address of get_display_config, %s.", dlerror());
/* 'backlight_ops' is declared static and used a lot of places with same name.
* So it fails that fetching symbol directly with name 'backlight_ops'.