Skip to content

ssd1306 base - #50

Open
dmytrokirtoka wants to merge 4 commits into
Kernel-GL-HRK:Dmytro.Kirtokafrom
dmytrokirtoka:ssd1306_base
Open

dmytrokirtoka wants to merge 4 commits into
Kernel-GL-HRK:Dmytro.Kirtokafrom
dmytrokirtoka:ssd1306_base

Conversation

@dmytrokirtoka

Copy link
Copy Markdown

added simple lcd driver communicated with i2c interface
driver supports frame buffer read/write only
this operations enough to use for its purpose

Signed-off-by: dmytro.kirtoka dimk334@gmail.com

Comment thread ssd1306/i2c_ssd1306.c
dev_info(&drv_client->dev, "%s: enter\n", __func__);
}

static void i2c_ssd1306_copyarea(struct fb_info *info,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why have you desided to refuse of these methods' functional and just use write method?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I did the minimum possible driver functionality for my purposes (vizualization app)

@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 point of using update thread!

Nevertheless could you please make changes listed below?

Comment thread ssd1306/i2c_ssd1306.c
.fb_blank = i2c_ssd1306_blank,
.fb_fillrect = i2c_ssd1306_fillrect,
.fb_copyarea = i2c_ssd1306_copyarea,
.fb_imageblit = i2c_ssd1306_imageblit,

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 guess these initialisation could be siplier since you didn't use most of framebuffer methods

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

maybe, but I left a message output, what if something is needed?

@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.

Please split the PR into functional commits

@dmytrokirtoka

Copy link
Copy Markdown
Author

this driver was written from an empty sheet,
please specify what exactly should be divided?

@AleksandrBulyshchenko

Copy link
Copy Markdown
Collaborator

this driver was written from an empty sheet,

👍 I see.

please specify what exactly should be divided?

I hope at least *.dtsi hasn't been written from an empty sheet.

@dmytrokirtoka

Copy link
Copy Markdown
Author

split to functional parts

@AleksandrBulyshchenko

Copy link
Copy Markdown
Collaborator

@dmytrokirtoka,
Please fill commit messages with more details.
Especially when add *.dtsi - provide information about its origin (repository, path, version).

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