-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[TOPIC-GPIO] drivers: ssd16xx: convert to new GPIO API #21686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TOPIC-GPIO] drivers: ssd16xx: convert to new GPIO API #21686
Conversation
|
All checks are passing now. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
86d19f7 to
b716052
Compare
|
@mnkp please re-review |
carlescufi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as is.
|
@jfischer-phytec-iot Are there any updates needed to the shield overlays? |
pabigot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required change is not loop on error return from gpio_pin_get().
drivers/display/ssd16xx.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be pin > 0 to prevent an infinite loop if the GPIO driver can return an error on read (e.g. SX1509B with an I2C failure). (Or pin == 1 but I prefer "positive means set".)
drivers/display/ssd16xx.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GPIO_OUTPUT_INACTIVE? Just for clarity/consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, but DC will always be set/reset in ssd16xx_write_cmd(). btw, I forgot to change few lines, fixed now.
Convert SSD16XX sensor driver to new GPIO API. Signed-off-by: Johann Fischer <[email protected]>
b716052 to
ff9dba1
Compare
@vanwinkeljan I think not, I have updated the shields together with appropriate driver. |
Convert SSD16XX sensor driver to new GPIO API.
TODO: shield overlays, but first the gpio branch has to be rebased on master