void *data)
{
struct omnibook_feature *feature = (struct omnibook_feature *)data;
- int len;
+ int len = 0;
if (!feature || !feature->read)
return -EINVAL;
+ if(off)
+ goto out;
+
len = feature->read(page, feature->io_op);
if (len < 0)
return len;
- if (len <= off + count)
- *eof = 1;
- *start = page + off;
- len -= off;
- if (len > count)
- len = count;
- if (len < 0)
- len = 0;
-
+ out:
+ *eof = 1;
return len;
}
*/
#define OMNIBOOK_MODULE_NAME "omnibook"
-#define OMNIBOOK_MODULE_VERSION "2.20060921-trunk"
+#define OMNIBOOK_MODULE_VERSION "2.20070211-trunk"
/*
* EC types
*/
#ifdef OMNIBOOK_STANDALONE
-#if (defined (CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE) || defined(CONFIG_BACKLIGHT_CLASS_DEVICE)) && (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,16))
+#if (defined (CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE) || defined(CONFIG_BACKLIGHT_CLASS_DEVICE)) && (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,16)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21))
#define CONFIG_OMNIBOOK_BACKLIGHT
#else
#undef CONFIG_OMNIBOOK_BACKLIGHT