Skip to content

ssd1306: add driver with optimizations - #48

Closed
joy4eg wants to merge 1 commit into
Kernel-GL-HRK:Yaroslav.Syrytsiafrom
joy4eg:ssd1306
Closed

ssd1306: add driver with optimizations#48
joy4eg wants to merge 1 commit into
Kernel-GL-HRK:Yaroslav.Syrytsiafrom
joy4eg:ssd1306

Conversation

@joy4eg

@joy4eg joy4eg commented Dec 10, 2017

Copy link
Copy Markdown

Summary:

  • Add base ssd1306 driver from PR ssd1306 device driver example #37
  • Optimizations:
    • Remove unnecessary global variables
    • Fix memory leak
    • Add deferred io support
    • Fix code style

@DevyatovAndrey DevyatovAndrey left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work in general!
But still it could you please make changes listed below?

Comment thread ssd1306/ssd1306_main.c Outdated
ssd1306_display_update_direct(ctx);
}

static void ssd1306_display_update(struct ssd1306_ctx *ctx)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are several display_update methods - that's really confusing. Could you rename these?

Comment thread ssd1306/ssd1306_main.c Outdated

dst = (void __force *) (info->screen_base + p);

if (copy_from_user(dst, buf, count))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there could be used a fb_sys_write method

Signed-off-by: Yaroslav Syrytsia <me@ys.lc>
@joy4eg

joy4eg commented Jan 10, 2018

Copy link
Copy Markdown
Author

Fixed.

@AleksandrBulyshchenko AleksandrBulyshchenko left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joy4eg,

  • Please base your changes onto original #37 branch (or its merge) instead of copying final version;
  • Split the PR into functional commits with descriptive commit messages;

Format your commits according to the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants