From 684f5ef56790771b425c7007c9dfcfbd8ea1a300 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sat, 6 Apr 2024 17:05:32 +0200 Subject: kernel 6.8.2 --- SOURCES/0001-bump-the-sensitivity-of-AMD-SFH.patch | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'SOURCES/0001-bump-the-sensitivity-of-AMD-SFH.patch') diff --git a/SOURCES/0001-bump-the-sensitivity-of-AMD-SFH.patch b/SOURCES/0001-bump-the-sensitivity-of-AMD-SFH.patch index 3a18987..092fab2 100644 --- a/SOURCES/0001-bump-the-sensitivity-of-AMD-SFH.patch +++ b/SOURCES/0001-bump-the-sensitivity-of-AMD-SFH.patch @@ -51,29 +51,29 @@ index 8a037de08e92..9426320a4a9c 100644 break; case MAG_IDX: /* magnetometer */ memset(rep_desc, 0, sizeof(comp3_report_descriptor)); -@@ -201,9 +202,9 @@ static u8 get_input_rep(u8 current_index, int sensor_idx, int report_id, +@@ -201,9 +201,9 @@ OFFSET_SENSOR_DATA_DEFAULT; memcpy_fromio(&accel_data, sensoraddr, sizeof(struct sfh_accel_data)); get_common_inputs(&acc_input.common_property, report_id); -- acc_input.in_accel_x_value = float_to_int(accel_data.acceldata.x) / 100; -- acc_input.in_accel_y_value = float_to_int(accel_data.acceldata.y) / 100; -- acc_input.in_accel_z_value = float_to_int(accel_data.acceldata.z) / 100; -+ acc_input.in_accel_x_value = float_to_int(accel_data.acceldata.x); -+ acc_input.in_accel_y_value = float_to_int(accel_data.acceldata.y); -+ acc_input.in_accel_z_value = float_to_int(accel_data.acceldata.z); +- acc_input.in_accel_x_value = amd_sfh_float_to_int(accel_data.acceldata.x) / 100; +- acc_input.in_accel_y_value = amd_sfh_float_to_int(accel_data.acceldata.y) / 100; +- acc_input.in_accel_z_value = amd_sfh_float_to_int(accel_data.acceldata.z) / 100; ++ acc_input.in_accel_x_value = amd_sfh_float_to_int(accel_data.acceldata.x); ++ acc_input.in_accel_y_value = amd_sfh_float_to_int(accel_data.acceldata.y); ++ acc_input.in_accel_z_value = amd_sfh_float_to_int(accel_data.acceldata.z); memcpy(input_report, &acc_input, sizeof(acc_input)); report_size = sizeof(acc_input); break; -@@ -212,9 +213,9 @@ static u8 get_input_rep(u8 current_index, int sensor_idx, int report_id, +@@ -212,9 +212,9 @@ OFFSET_SENSOR_DATA_DEFAULT; memcpy_fromio(&gyro_data, sensoraddr, sizeof(struct sfh_gyro_data)); get_common_inputs(&gyro_input.common_property, report_id); -- gyro_input.in_angel_x_value = float_to_int(gyro_data.gyrodata.x) / 1000; -- gyro_input.in_angel_y_value = float_to_int(gyro_data.gyrodata.y) / 1000; -- gyro_input.in_angel_z_value = float_to_int(gyro_data.gyrodata.z) / 1000; -+ gyro_input.in_angel_x_value = float_to_int(gyro_data.gyrodata.x); -+ gyro_input.in_angel_y_value = float_to_int(gyro_data.gyrodata.y); -+ gyro_input.in_angel_z_value = float_to_int(gyro_data.gyrodata.z); +- gyro_input.in_angel_x_value = amd_sfh_float_to_int(gyro_data.gyrodata.x) / 1000; +- gyro_input.in_angel_y_value = amd_sfh_float_to_int(gyro_data.gyrodata.y) / 1000; +- gyro_input.in_angel_z_value = amd_sfh_float_to_int(gyro_data.gyrodata.z) / 1000; ++ gyro_input.in_angel_x_value = amd_sfh_float_to_int(gyro_data.gyrodata.x); ++ gyro_input.in_angel_y_value = amd_sfh_float_to_int(gyro_data.gyrodata.y); ++ gyro_input.in_angel_z_value = amd_sfh_float_to_int(gyro_data.gyrodata.z); memcpy(input_report, &gyro_input, sizeof(gyro_input)); report_size = sizeof(gyro_input); break; -- cgit v1.2.3