static struct xxx_device {
  ...
  struct class_device class_dev;
  ...
};