drivers/auxdisplay: format jhd1313 driver.
Format jhd1313 driver to comply with CI rules. Signed-off-by: Leon Mariotto <leon2mariotto@gmail.com>
This commit is contained in:
parent
2d98a7225c
commit
f411f48d37
1 changed files with 66 additions and 70 deletions
|
@ -143,8 +143,7 @@ static int auxdisplay_jhd1313_clear(const struct device *dev)
|
|||
return rc;
|
||||
}
|
||||
|
||||
static int auxdisplay_jhd1313_update_display_state(
|
||||
const struct auxdisplay_jhd1313_config *config,
|
||||
static int auxdisplay_jhd1313_update_display_state(const struct auxdisplay_jhd1313_config *config,
|
||||
struct auxdisplay_jhd1313_data *data)
|
||||
{
|
||||
int rc;
|
||||
|
@ -350,7 +349,8 @@ static DEVICE_API(auxdisplay, auxdisplay_jhd1313_auxdisplay_api) = {
|
|||
|
||||
#define AUXDISPLAY_JHD1313_DEVICE(inst) \
|
||||
static const struct auxdisplay_jhd1313_config auxdisplay_jhd1313_config_##inst = { \
|
||||
.capabilities = { \
|
||||
.capabilities = \
|
||||
{ \
|
||||
.columns = 16, \
|
||||
.rows = 2, \
|
||||
.mode = 0, \
|
||||
|
@ -368,13 +368,9 @@ static DEVICE_API(auxdisplay, auxdisplay_jhd1313_auxdisplay_api) = {
|
|||
.cursor = false, \
|
||||
.blinking = false, \
|
||||
}; \
|
||||
DEVICE_DT_INST_DEFINE(inst, \
|
||||
&auxdisplay_jhd1313_initialize, \
|
||||
NULL, \
|
||||
&auxdisplay_jhd1313_data_##inst, \
|
||||
&auxdisplay_jhd1313_config_##inst, \
|
||||
POST_KERNEL, \
|
||||
CONFIG_AUXDISPLAY_INIT_PRIORITY, \
|
||||
DEVICE_DT_INST_DEFINE(inst, &auxdisplay_jhd1313_initialize, NULL, \
|
||||
&auxdisplay_jhd1313_data_##inst, &auxdisplay_jhd1313_config_##inst, \
|
||||
POST_KERNEL, CONFIG_AUXDISPLAY_INIT_PRIORITY, \
|
||||
&auxdisplay_jhd1313_auxdisplay_api);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(AUXDISPLAY_JHD1313_DEVICE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue