Merge branch 'for-4.6/core' of git://git.kernel.dk/linux-block
[linux-2.6-block.git] / include / media / rc-core.h
index f6494709e230d0a34a5486ccb89236494a53edb7..0f77b3dffb379bfd4dfe3df7d86d269d0174eaec 100644 (file)
@@ -60,6 +60,7 @@ enum rc_filter_type {
 /**
  * struct rc_dev - represents a remote control device
  * @dev: driver model's view of this device
+ * @initialized: 1 if the device init has completed, 0 otherwise
  * @sysfs_groups: sysfs attribute groups
  * @input_name: name of the input child device
  * @input_phys: physical path to the input child device
@@ -121,6 +122,7 @@ enum rc_filter_type {
  */
 struct rc_dev {
        struct device                   dev;
+       atomic_t                        initialized;
        const struct attribute_group    *sysfs_groups[5];
        const char                      *input_name;
        const char                      *input_phys;