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
nexedi
linux
Commits
0f080066
Commit
0f080066
authored
Feb 04, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gpio: pass number of on-die gpio lines to base
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
23fc09ee
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
drivers/gpu/drm/nouveau/core/include/subdev/gpio.h
drivers/gpu/drm/nouveau/core/include/subdev/gpio.h
+3
-3
drivers/gpu/drm/nouveau/core/subdev/gpio/base.c
drivers/gpu/drm/nouveau/core/subdev/gpio/base.c
+2
-1
drivers/gpu/drm/nouveau/core/subdev/gpio/nv10.c
drivers/gpu/drm/nouveau/core/subdev/gpio/nv10.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c
drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c
+3
-1
drivers/gpu/drm/nouveau/core/subdev/gpio/nvd0.c
drivers/gpu/drm/nouveau/core/subdev/gpio/nvd0.c
+1
-1
No files found.
drivers/gpu/drm/nouveau/core/include/subdev/gpio.h
View file @
0f080066
...
...
@@ -40,15 +40,15 @@ nouveau_gpio(void *obj)
return
(
void
*
)
nv_device
(
obj
)
->
subdev
[
NVDEV_SUBDEV_GPIO
];
}
#define nouveau_gpio_create(p,e,o,
d)
\
nouveau_gpio_create_((p), (e), (o), sizeof(**d), (void **)d)
#define nouveau_gpio_create(p,e,o,
l,d)
\
nouveau_gpio_create_((p), (e), (o),
(l),
sizeof(**d), (void **)d)
#define nouveau_gpio_destroy(p) \
nouveau_subdev_destroy(&(p)->base)
#define nouveau_gpio_fini(p,s) \
nouveau_subdev_fini(&(p)->base, (s))
int
nouveau_gpio_create_
(
struct
nouveau_object
*
,
struct
nouveau_object
*
,
struct
nouveau_oclass
*
,
int
,
void
**
);
struct
nouveau_oclass
*
,
int
,
int
,
void
**
);
int
nouveau_gpio_init
(
struct
nouveau_gpio
*
);
extern
struct
nouveau_oclass
nv10_gpio_oclass
;
...
...
drivers/gpu/drm/nouveau/core/subdev/gpio/base.c
View file @
0f080066
...
...
@@ -230,7 +230,8 @@ nouveau_gpio_isr_del(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line,
int
nouveau_gpio_create_
(
struct
nouveau_object
*
parent
,
struct
nouveau_object
*
engine
,
struct
nouveau_oclass
*
oclass
,
int
length
,
void
**
pobject
)
struct
nouveau_oclass
*
oclass
,
int
lines
,
int
length
,
void
**
pobject
)
{
struct
nouveau_gpio
*
gpio
;
int
ret
;
...
...
drivers/gpu/drm/nouveau/core/subdev/gpio/nv10.c
View file @
0f080066
...
...
@@ -112,7 +112,7 @@ nv10_gpio_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
struct
nv10_gpio_priv
*
priv
;
int
ret
;
ret
=
nouveau_gpio_create
(
parent
,
engine
,
oclass
,
&
priv
);
ret
=
nouveau_gpio_create
(
parent
,
engine
,
oclass
,
16
,
&
priv
);
*
pobject
=
nv_object
(
priv
);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c
View file @
0f080066
...
...
@@ -132,7 +132,9 @@ nv50_gpio_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
struct
nv50_gpio_priv
*
priv
;
int
ret
;
ret
=
nouveau_gpio_create
(
parent
,
engine
,
oclass
,
&
priv
);
ret
=
nouveau_gpio_create
(
parent
,
engine
,
oclass
,
nv_device
(
parent
)
->
chipset
>=
0x90
?
32
:
16
,
&
priv
);
*
pobject
=
nv_object
(
priv
);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/nouveau/core/subdev/gpio/nvd0.c
View file @
0f080066
...
...
@@ -80,7 +80,7 @@ nvd0_gpio_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
struct
nvd0_gpio_priv
*
priv
;
int
ret
;
ret
=
nouveau_gpio_create
(
parent
,
engine
,
oclass
,
&
priv
);
ret
=
nouveau_gpio_create
(
parent
,
engine
,
oclass
,
32
,
&
priv
);
*
pobject
=
nv_object
(
priv
);
if
(
ret
)
return
ret
;
...
...
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