Device driver development. I am looking to write a new video driver for 'oidando' redirecting fb to socket.
I start filling in the gaps starting with this template
http://pdk.android.com/online-pdk/gu...y_drivers.html
Then later I ran into netfb at:
http://www.google.com/codesearch/p?h...a=N&cd=1&ct=rc
Now the 2 drivers uses different structures to probe/remove the driver.
'roidandro' uses:
Code:
struct platform_driver and
calls
Code:
platform_driver_register(struct platform_driver*)
while netfb uses:
Code:
struct device_driver netfb_driver;
struct platform_device;
and makes 2 calls in _init
Code:
driver_register(struct device_driver *);
platform_device_register(struct platform_device*);
So my question is: when to use
Code:
struct device_driver
struct platform_device
struct platform_driver