diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-15 21:19:34 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-17 21:21:21 -0400 |
| commit | 266dcff03eed0050b6af11aaf2a61ab837d7ba3f (patch) | |
| tree | 3d11f566fe2c4712808577bdd02d1a83859c9299 /include | |
| parent | c8b29f049eb2645dd21e40a6613c09f15c731650 (diff) | |
Serial: allow port drivers to have a default attribute group
Some serial drivers (like 8250), want to add sysfs files. We need to do
so in a race-free way, so allow any port to be able to specify an
attribute group that should be added at device creation time.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/serial_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 5bbb809ee197..cf3a1e789bf5 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
| @@ -199,6 +199,8 @@ struct uart_port { | |||
| 199 | unsigned char suspended; | 199 | unsigned char suspended; |
| 200 | unsigned char irq_wake; | 200 | unsigned char irq_wake; |
| 201 | unsigned char unused[2]; | 201 | unsigned char unused[2]; |
| 202 | struct attribute_group *attr_group; /* port specific attributes */ | ||
| 203 | const struct attribute_group **tty_groups; /* all attributes (serial core use only) */ | ||
| 202 | void *private_data; /* generic platform data pointer */ | 204 | void *private_data; /* generic platform data pointer */ |
| 203 | }; | 205 | }; |
| 204 | 206 | ||
