Home
last modified time | relevance | path

Searched refs:cal_y (Results 1 – 1 of 1) sorted by relevance

/drivers/hid/
Dhid-nintendo.c300 struct joycon_stick_cal *cal_y; in joycon_request_calibration() local
349 cal_y = &ctlr->left_stick_cal_y; in joycon_request_calibration()
354 cal_y->center = hid_field_extract(ctlr->hdev, (raw_cal + 4), 4, 12); in joycon_request_calibration()
359 cal_y->max = cal_y->center + y_max_above; in joycon_request_calibration()
360 cal_y->min = cal_y->center - y_min_below; in joycon_request_calibration()
365 cal_y = &ctlr->right_stick_cal_y; in joycon_request_calibration()
368 cal_y->center = hid_field_extract(ctlr->hdev, (raw_cal + 1), 4, 12); in joycon_request_calibration()
375 cal_y->max = cal_y->center + y_max_above; in joycon_request_calibration()
376 cal_y->min = cal_y->center - y_min_below; in joycon_request_calibration()