Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3be03d42
Commit
3be03d42
authored
Sep 01, 2014
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: minor checkpatch cleanups
parent
06340efb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
drivers/staging/greybus/core.c
drivers/staging/greybus/core.c
+3
-2
drivers/staging/greybus/gpio-gb.c
drivers/staging/greybus/gpio-gb.c
+1
-2
drivers/staging/greybus/sysfs.c
drivers/staging/greybus/sysfs.c
+3
-0
drivers/staging/greybus/uart-gb.c
drivers/staging/greybus/uart-gb.c
+1
-2
No files found.
drivers/staging/greybus/core.c
View file @
3be03d42
...
...
@@ -226,8 +226,9 @@ static int gb_init_subdevs(struct greybus_device *gdev,
return
retval
;
}
static
const
struct
greybus_module_id
fake_gb_id
=
{
GREYBUS_DEVICE
(
0x42
,
0x42
)
};
static
const
struct
greybus_module_id
fake_gb_id
=
{
GREYBUS_DEVICE
(
0x42
,
0x42
)
};
static
int
create_function
(
struct
greybus_device
*
gdev
,
struct
greybus_descriptor
*
desc
,
int
desc_size
)
...
...
drivers/staging/greybus/gpio-gb.c
View file @
3be03d42
...
...
@@ -48,7 +48,6 @@ static int gpio_get(struct gpio_chip *gpio, unsigned nr)
static
void
gpio_set
(
struct
gpio_chip
*
gpio
,
unsigned
nr
,
int
val
)
{
// FIXME - do something there
return
;
}
int
gb_gpio_probe
(
struct
greybus_device
*
gdev
,
...
...
@@ -77,7 +76,7 @@ int gb_gpio_probe(struct greybus_device *gdev,
gpio
->
ngpio
=
42
;
// FIXME!!!
gpio
->
can_sleep
=
false
;
// FIXME!!!
gdev
->
gb_gpio_dev
=
gb_gpio
;
gdev
->
gb_gpio_dev
=
gb_gpio
;
retval
=
gpiochip_add
(
gpio
);
if
(
retval
)
{
...
...
drivers/staging/greybus/sysfs.c
View file @
3be03d42
...
...
@@ -85,6 +85,7 @@ static ssize_t module_vendor_string_show(struct device *dev,
char
*
buf
)
{
struct
greybus_device
*
gdev
=
to_greybus_device
(
dev
);
return
sprintf
(
buf
,
"%s"
,
greybus_string
(
gdev
,
gdev
->
module_id
.
vendor_stringid
));
}
...
...
@@ -95,6 +96,7 @@ static ssize_t module_product_string_show(struct device *dev,
char
*
buf
)
{
struct
greybus_device
*
gdev
=
to_greybus_device
(
dev
);
return
sprintf
(
buf
,
"%s"
,
greybus_string
(
gdev
,
gdev
->
module_id
.
product_stringid
));
}
...
...
@@ -141,6 +143,7 @@ static ssize_t serial_number_show(struct device *dev,
struct
device_attribute
*
attr
,
char
*
buf
)
{
struct
greybus_device
*
gdev
=
to_greybus_device
(
dev
);
return
sprintf
(
buf
,
"%llX
\n
"
,
(
unsigned
long
long
)
gdev
->
serial_number
.
serial_number
);
}
...
...
drivers/staging/greybus/uart-gb.c
View file @
3be03d42
...
...
@@ -245,8 +245,7 @@ static int get_serial_info(struct gb_tty *gb_tty,
if
(
copy_to_user
(
info
,
&
tmp
,
sizeof
(
tmp
)))
return
-
EFAULT
;
else
return
0
;
return
0
;
}
static
int
set_serial_info
(
struct
gb_tty
*
gb_tty
,
...
...
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