Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FPGA Configuration Space
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
FPGA Configuration Space
Commits
b77f9633
Commit
b77f9633
authored
13 years ago
by
Manohar Vanga
Browse files
Options
Downloads
Patches
Plain Diff
driver: fix checkpatch warnings and clean up Makefile
Signed-off-by:
Manohar Vanga
<
manohar.vanga@cern.ch
>
parent
20ba84f0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
driver/Makefile
+1
-1
1 addition, 1 deletion
driver/Makefile
driver/fake_wb_bus.c
+1
-1
1 addition, 1 deletion
driver/fake_wb_bus.c
driver/wishbone.c
+5
-5
5 additions, 5 deletions
driver/wishbone.c
with
7 additions
and
7 deletions
driver/Makefile
+
1
−
1
View file @
b77f9633
...
...
@@ -5,7 +5,7 @@ LINUX?=/acc/sys/$(CPU)/usr/src/kernels/$(KVER)
# temporarily, use local <linux/wishbone.h>
EXTRA_CFLAGS
:=
-I
$(
obj
)
/include
-I
$(
shell /bin/pwd
)
/drivers/w1/
obj-m
=
wishbone.o fakedac.o fakeadc.o fake_wb_bus.o
wb_onewire.o
wb_1wire.o
obj-m
=
wishbone.o fakedac.o fakeadc.o fake_wb_bus.o wb_1wire.o
all
:
make
-C
$(
LINUX
)
M
=
$(
shell /bin/pwd
)
modules
...
...
This diff is collapsed.
Click to expand it.
driver/fake_wb_bus.c
+
1
−
1
View file @
b77f9633
...
...
@@ -95,7 +95,7 @@ static void fake_wbbus_release(struct device *dev)
}
static
struct
device
fake_wbbus_device
=
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,
6,
29)
.
bus_id
=
"fake-wbbus0"
,
#else
.
init_name
=
"fake-wbbus0"
,
...
...
This diff is collapsed.
Click to expand it.
driver/wishbone.c
+
5
−
5
View file @
b77f9633
...
...
@@ -41,7 +41,7 @@ static void wb_zero_release(struct device *dev)
}
static
struct
device
wb_dev_zero
=
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,
6,
29)
.
bus_id
=
"wb0"
,
#else
.
init_name
=
"wb0"
,
...
...
@@ -87,7 +87,7 @@ int wb_register_device(struct wb_device *wbdev)
wbdev
->
dev
.
bus
=
&
wb_bus_type
;
wbdev
->
dev
.
parent
=
&
wbdev
->
bus
->
dev
;
wbdev
->
dev
.
release
=
wb_dev_release
;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,
6,
29)
snprintf
(
wbdev
->
dev
.
bus_id
,
BUS_ID_SIZE
,
"wb%d-%s-%s"
,
devno
,
wbdev
->
wbd
.
vendor_name
,
wbdev
->
wbd
.
device_name
);
#else
...
...
@@ -142,7 +142,7 @@ static struct wb_device *wb_get_next_device(struct wb_bus *bus, wb_addr_t wb_ptr
wb_read_cfg
(
bus
,
wb_ptr
,
(
void
*
)
&
wbd
,
sizeof
(
struct
sdwb_wbd
));
if
(
wbd
.
wbd_magic
!=
SDWB_WBD_MAGIC
)
if
(
wbd
.
wbd_magic
!=
SDWB_WBD_MAGIC
)
return
NULL
;
wbd
.
hdl_base
=
be64_to_cpu
(
wbd
.
hdl_base
);
...
...
@@ -222,7 +222,7 @@ int wb_scan_bus(struct wb_bus *bus)
pr_info
(
KBUILD_MODNAME
": found %d wishbone devices on wishbone bus %s
\n
"
,
bus
->
ndev
,
bus
->
name
);
return
0
;
err_wbdev_register:
...
...
@@ -253,7 +253,7 @@ int wb_register_bus(struct wb_bus *bus)
bus
->
dev
.
bus
=
&
wb_bus_type
;
bus
->
dev
.
parent
=
&
wb_dev_zero
;
bus
->
dev
.
release
=
wb_bus_release
;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,
6,
29)
snprintf
(
bus
->
dev
.
bus_id
,
BUS_ID_SIZE
,
"wb-bus%d-%s"
,
devno
,
bus
->
name
);
#else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment