Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
c604ff0b
Commit
c604ff0b
authored
Feb 08, 2006
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cbus: Update tahvo-usb for kernel API changes.
parent
15690716
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
drivers/cbus/tahvo-usb.c
drivers/cbus/tahvo-usb.c
+11
-10
No files found.
drivers/cbus/tahvo-usb.c
View file @
c604ff0b
...
@@ -29,14 +29,14 @@
...
@@ -29,14 +29,14 @@
#include <linux/init.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/
platform_
device.h>
#include <linux/usb_ch9.h>
#include <linux/usb_ch9.h>
#include <linux/usb_gadget.h>
#include <linux/usb_gadget.h>
#include <linux/usb.h>
#include <linux/usb.h>
#include <linux/usb_otg.h>
#include <linux/usb_otg.h>
#include <linux/i2c.h>
#include <linux/i2c.h>
#include <linux/workqueue.h>
#include <linux/workqueue.h>
#include <linux/kobject
_uevent
.h>
#include <linux/kobject.h>
#include <linux/clk.h>
#include <linux/clk.h>
#include <asm/irq.h>
#include <asm/irq.h>
...
@@ -212,7 +212,8 @@ struct device_driver omap_otg_driver = {
...
@@ -212,7 +212,8 @@ struct device_driver omap_otg_driver = {
* which are copied from isp1301.c
* which are copied from isp1301.c
* ---------------------------------------------------------------------------
* ---------------------------------------------------------------------------
*/
*/
static
ssize_t
vbus_state_show
(
struct
device
*
device
,
char
*
buf
)
static
ssize_t
vbus_state_show
(
struct
device
*
device
,
struct
device_attribute
*
attr
,
char
*
buf
)
{
{
struct
tahvo_usb
*
tu
=
(
struct
tahvo_usb
*
)
device
->
driver_data
;
struct
tahvo_usb
*
tu
=
(
struct
tahvo_usb
*
)
device
->
driver_data
;
return
sprintf
(
buf
,
"%d
\n
"
,
tu
->
vbus_state
);
return
sprintf
(
buf
,
"%d
\n
"
,
tu
->
vbus_state
);
...
@@ -272,11 +273,8 @@ static void check_vbus_state(struct tahvo_usb *tu)
...
@@ -272,11 +273,8 @@ static void check_vbus_state(struct tahvo_usb *tu)
prev_state
=
tu
->
vbus_state
;
prev_state
=
tu
->
vbus_state
;
tu
->
vbus_state
=
reg
&
0x01
;
tu
->
vbus_state
=
reg
&
0x01
;
if
(
prev_state
!=
tu
->
vbus_state
)
{
if
(
prev_state
!=
tu
->
vbus_state
)
kobject_uevent_atomic
(
&
tu
->
pt_dev
->
dev
.
kobj
,
kobject_uevent
(
&
tu
->
pt_dev
->
dev
.
kobj
,
KOBJ_CHANGE
);
KOBJ_CHANGE
,
&
dev_attr_vbus_state
.
attr
);
}
}
}
static
void
tahvo_usb_become_host
(
struct
tahvo_usb
*
tu
)
static
void
tahvo_usb_become_host
(
struct
tahvo_usb
*
tu
)
...
@@ -494,7 +492,8 @@ static void tahvo_usb_vbus_interrupt(unsigned long arg)
...
@@ -494,7 +492,8 @@ static void tahvo_usb_vbus_interrupt(unsigned long arg)
}
}
#ifdef CONFIG_USB_OTG
#ifdef CONFIG_USB_OTG
static
ssize_t
otg_mode_show
(
struct
device
*
device
,
char
*
buf
)
static
ssize_t
otg_mode_show
(
struct
device
*
device
,
struct
device_attribute
*
attr
,
char
*
buf
)
{
{
struct
tahvo_usb
*
tu
=
(
struct
tahvo_usb
*
)
device
->
driver_data
;
struct
tahvo_usb
*
tu
=
(
struct
tahvo_usb
*
)
device
->
driver_data
;
switch
(
tu
->
tahvo_mode
)
{
switch
(
tu
->
tahvo_mode
)
{
...
@@ -506,7 +505,9 @@ static ssize_t otg_mode_show(struct device *device, char *buf)
...
@@ -506,7 +505,9 @@ static ssize_t otg_mode_show(struct device *device, char *buf)
return
sprintf
(
buf
,
"unknown
\n
"
);
return
sprintf
(
buf
,
"unknown
\n
"
);
}
}
static
ssize_t
otg_mode_store
(
struct
device
*
device
,
const
char
*
buf
,
size_t
count
)
static
ssize_t
otg_mode_store
(
struct
device
*
device
,
struct
device_attribute
*
attr
,
const
char
*
buf
,
size_t
count
)
{
{
struct
tahvo_usb
*
tu
=
(
struct
tahvo_usb
*
)
device
->
driver_data
;
struct
tahvo_usb
*
tu
=
(
struct
tahvo_usb
*
)
device
->
driver_data
;
int
r
;
int
r
;
...
...
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