Lines Matching refs:sensor_dev
488 struct input_dev *sensor_dev; member
831 input_report_abs(sc->sensor_dev, ABS_X, val); in sixaxis_parse_report()
835 input_report_abs(sc->sensor_dev, ABS_Y, val); in sixaxis_parse_report()
838 input_report_abs(sc->sensor_dev, ABS_Z, val); in sixaxis_parse_report()
840 input_sync(sc->sensor_dev); in sixaxis_parse_report()
1081 sc->sensor_dev = devm_input_allocate_device(&sc->hdev->dev); in sony_register_sensors()
1082 if (!sc->sensor_dev) in sony_register_sensors()
1085 input_set_drvdata(sc->sensor_dev, sc); in sony_register_sensors()
1086 sc->sensor_dev->dev.parent = &sc->hdev->dev; in sony_register_sensors()
1087 sc->sensor_dev->phys = sc->hdev->phys; in sony_register_sensors()
1088 sc->sensor_dev->uniq = sc->hdev->uniq; in sony_register_sensors()
1089 sc->sensor_dev->id.bustype = sc->hdev->bus; in sony_register_sensors()
1090 sc->sensor_dev->id.vendor = sc->hdev->vendor; in sony_register_sensors()
1091 sc->sensor_dev->id.product = sc->hdev->product; in sony_register_sensors()
1092 sc->sensor_dev->id.version = sc->hdev->version; in sony_register_sensors()
1102 sc->sensor_dev->name = name; in sony_register_sensors()
1111 input_set_abs_params(sc->sensor_dev, ABS_X, -512, 511, 4, 0); in sony_register_sensors()
1112 input_set_abs_params(sc->sensor_dev, ABS_Y, -512, 511, 4, 0); in sony_register_sensors()
1113 input_set_abs_params(sc->sensor_dev, ABS_Z, -512, 511, 4, 0); in sony_register_sensors()
1114 input_abs_set_res(sc->sensor_dev, ABS_X, SIXAXIS_ACC_RES_PER_G); in sony_register_sensors()
1115 input_abs_set_res(sc->sensor_dev, ABS_Y, SIXAXIS_ACC_RES_PER_G); in sony_register_sensors()
1116 input_abs_set_res(sc->sensor_dev, ABS_Z, SIXAXIS_ACC_RES_PER_G); in sony_register_sensors()
1119 __set_bit(INPUT_PROP_ACCELEROMETER, sc->sensor_dev->propbit); in sony_register_sensors()
1121 ret = input_register_device(sc->sensor_dev); in sony_register_sensors()