summaryrefslogtreecommitdiff
path: root/SOURCES/0001-bump-the-sensitivity-of-AMD-SFH.patch
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-04-06 17:05:32 +0200
committerJan200101 <sentrycraft123@gmail.com>2024-04-06 17:05:32 +0200
commit684f5ef56790771b425c7007c9dfcfbd8ea1a300 (patch)
tree118298a92be197f4a59d03cf2a5b447cbe9b9354 /SOURCES/0001-bump-the-sensitivity-of-AMD-SFH.patch
parentc0c9b770e4f24e17886587762c42194b6e524720 (diff)
downloadkernel-fsync-684f5ef56790771b425c7007c9dfcfbd8ea1a300.tar.gz
kernel-fsync-684f5ef56790771b425c7007c9dfcfbd8ea1a300.zip
kernel 6.8.2
Diffstat (limited to 'SOURCES/0001-bump-the-sensitivity-of-AMD-SFH.patch')
-rw-r--r--SOURCES/0001-bump-the-sensitivity-of-AMD-SFH.patch28
1 files changed, 14 insertions, 14 deletions
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;