staging: comedi: jr3_pci: separate out poll state enum
The type of the `state` member of `struct jr3_pci_subdev_private` is defined in-situ as an enumerated type without a tag. For aesthetic reasons, define the type as `enum jr3_pci_poll_state` outside the containing `struct`. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
dc5761db87
commit
de98befe56
@@ -99,16 +99,19 @@ struct jr3_pci_dev_private {
|
|||||||
struct timer_list timer;
|
struct timer_list timer;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct jr3_pci_subdev_private {
|
enum jr3_pci_poll_state {
|
||||||
struct jr3_channel __iomem *channel;
|
state_jr3_poll,
|
||||||
unsigned long next_time_min;
|
|
||||||
enum { state_jr3_poll,
|
|
||||||
state_jr3_init_wait_for_offset,
|
state_jr3_init_wait_for_offset,
|
||||||
state_jr3_init_transform_complete,
|
state_jr3_init_transform_complete,
|
||||||
state_jr3_init_set_full_scale_complete,
|
state_jr3_init_set_full_scale_complete,
|
||||||
state_jr3_init_use_offset_complete,
|
state_jr3_init_use_offset_complete,
|
||||||
state_jr3_done
|
state_jr3_done
|
||||||
} state;
|
};
|
||||||
|
|
||||||
|
struct jr3_pci_subdev_private {
|
||||||
|
struct jr3_channel __iomem *channel;
|
||||||
|
unsigned long next_time_min;
|
||||||
|
enum jr3_pci_poll_state state;
|
||||||
int serial_no;
|
int serial_no;
|
||||||
int model_no;
|
int model_no;
|
||||||
struct {
|
struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user