~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal

« back to all changes in this revision

Viewing changes to drivers/staging/asus_oled/asus_oled.c

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-04kado7d1u2er2rl
Tags: 3.2.0-16.25
Add new lowlatency kernel flavour

Show diffs side-by-side

added added

removed removed

Lines of Context:
355
355
 
356
356
static int append_values(struct asus_oled_dev *odev, uint8_t val, size_t count)
357
357
{
358
 
        while (count-- > 0 && val) {
 
358
        odev->last_val = val;
 
359
 
 
360
        if (val == 0) {
 
361
                odev->buf_offs += count;
 
362
                return 0;
 
363
        }
 
364
 
 
365
        while (count-- > 0) {
359
366
                size_t x = odev->buf_offs % odev->width;
360
367
                size_t y = odev->buf_offs / odev->width;
361
368
                size_t i;
406
413
                        ;
407
414
                }
408
415
 
409
 
                odev->last_val = val;
410
416
                odev->buf_offs++;
411
417
        }
412
418
 
805
811
 
806
812
static void __exit asus_oled_exit(void)
807
813
{
 
814
        usb_deregister(&oled_driver);
808
815
        class_remove_file(oled_class, &class_attr_version.attr);
809
816
        class_destroy(oled_class);
810
 
 
811
 
        usb_deregister(&oled_driver);
812
817
}
813
818
 
814
819
module_init(asus_oled_init);