BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
9e7bd6ba
Commit
9e7bd6ba
authored
Jan 31, 2019
by
David Frey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws eink: cleanup formatting
parent
2c544281
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
fb_waveshare_eink.c
...l/waveshare_eink/linux_kernel_modules/fb_waveshare_eink.c
+10
-14
mangOH_red_ws213.c
...al/waveshare_eink/linux_kernel_modules/mangOH_red_ws213.c
+0
-0
No files found.
experimental/waveshare_eink/linux_kernel_modules/fb_waveshare_eink.c
View file @
9e7bd6ba
...
...
@@ -161,8 +161,8 @@ static int int_lut(struct ws_eink_fb_par *par, const u8 *lut, size_t lut_size)
return
set_lut
(
par
,
lut
,
lut_size
);
}
static
int
set_memory_area
(
struct
ws_eink_fb_par
*
par
,
int
x_start
,
int
y_start
,
int
x_end
,
int
y_end
)
static
int
set_memory_area
(
struct
ws_eink_fb_par
*
par
,
int
x_start
,
int
y_start
,
int
x_end
,
int
y_end
)
{
int
ret
;
const
u8
x_start_end
[]
=
{
(
x_start
>>
3
)
&
0xFF
,
(
x_end
>>
3
)
&
0xFF
};
...
...
@@ -283,15 +283,15 @@ static int ws_eink_init_display(struct ws_eink_fb_par *par)
return
ret
;
}
ret
=
devm_gpio_request_one
(
&
par
->
spi
->
dev
,
par
->
dc
,
GPIOF_OUT_INIT_LOW
,
"ws_eink_dc"
);
ret
=
devm_gpio_request_one
(
&
par
->
spi
->
dev
,
par
->
dc
,
GPIOF_OUT_INIT_LOW
,
"ws_eink_dc"
);
if
(
ret
)
{
dev_err
(
dev
,
"Couldn't request data/command GPIO
\n
"
);
return
ret
;
}
ret
=
devm_gpio_request_one
(
&
par
->
spi
->
dev
,
par
->
busy
,
GPIOF_IN
,
"ws_eink_busy"
);
ret
=
devm_gpio_request_one
(
&
par
->
spi
->
dev
,
par
->
busy
,
GPIOF_IN
,
"ws_eink_busy"
);
if
(
ret
)
{
dev_err
(
dev
,
"Couldn't request busy GPIO
\n
"
);
return
ret
;
...
...
@@ -335,8 +335,7 @@ void ws_eink_fb_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
sys_fillrect
(
info
,
rect
);
ret
=
ws_eink_update_display
(
par
);
if
(
ret
)
dev_err
(
info
->
device
,
"%s: failed to update display"
,
__func__
);
dev_err
(
info
->
device
,
"%s: failed to update display"
,
__func__
);
}
void
ws_eink_fb_copyarea
(
struct
fb_info
*
info
,
const
struct
fb_copyarea
*
area
)
...
...
@@ -346,8 +345,7 @@ void ws_eink_fb_copyarea(struct fb_info *info, const struct fb_copyarea *area)
sys_copyarea
(
info
,
area
);
ret
=
ws_eink_update_display
(
par
);
if
(
ret
)
dev_err
(
info
->
device
,
"%s: failed to update display"
,
__func__
);
dev_err
(
info
->
device
,
"%s: failed to update display"
,
__func__
);
}
void
ws_eink_fb_imageblit
(
struct
fb_info
*
info
,
const
struct
fb_image
*
image
)
...
...
@@ -357,8 +355,7 @@ void ws_eink_fb_imageblit(struct fb_info *info, const struct fb_image *image)
sys_imageblit
(
info
,
image
);
ret
=
ws_eink_update_display
(
par
);
if
(
ret
)
dev_err
(
info
->
device
,
"%s: failed to update display"
,
__func__
);
dev_err
(
info
->
device
,
"%s: failed to update display"
,
__func__
);
}
static
ssize_t
ws_eink_fb_write
(
struct
fb_info
*
info
,
const
char
__user
*
buf
,
...
...
@@ -447,8 +444,7 @@ static void ws_eink_deferred_io(struct fb_info *info,
{
int
ret
=
ws_eink_update_display
(
info
->
par
);
if
(
ret
)
dev_err
(
info
->
device
,
"%s: failed to update display"
,
__func__
);
dev_err
(
info
->
device
,
"%s: failed to update display"
,
__func__
);
}
static
struct
fb_deferred_io
ws_eink_defio
=
{
...
...
experimental/waveshare_eink/linux_kernel_modules/mangOH_red_ws213.c
View file @
9e7bd6ba
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment