I am trying to use loadable Kernel module to modify the LCD display parameters. Following is compiled code for the kernel.
void set_fb_video ()
{
platform_device_unregister(&goldfish_lcd);
((atmel_lcdfb_info*)goldfish_lcd.dev.platform_data)->default_monspecs->modedb->xres = 10;
platform_device_register(&goldfish_lcd);
};
EXPORT_SYMBOL("set_fb_video");
Then I have a loadable kernel module lcd_modify.ko
int __init init_module(void)
{
..
..
set_fb_video();
..
..
return;
}
Then the module is loaded to the device using insmod lcd_modify.ko
The device at this point hangs up.
Question:
- Can I use loadable kernal module to modify the lcd display?
- Are parameters real-time? If so, what am I doing wrong?
- If not, what is a better way to modify lcd the parameters real-time?
Thank you for your feedback in advance.