HID: amd_sfh: rename float_to_int() to amd_sfh_float_to_int()
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Wed, 20 Dec 2023 07:00:40 +0000 (12:30 +0530)
committerJiri Kosina <jkosina@suse.com>
Thu, 4 Jan 2024 14:19:17 +0000 (15:19 +0100)
commit4e71d262899d7bab1f0c65936a2e639afeb83e4d
tree29e7081c27f1405341aebb71b8b16ad037d986bf
parent3f10e214a9de738832b357a58b605c2fbd23aa96
HID: amd_sfh: rename float_to_int() to amd_sfh_float_to_int()

Current amd_sfh driver has float_to_int() to convert units from
float to int. This is fine until this function gets called outside of
the current scope of file.

Add a prefix "amd_sfh" to float_to_int() so that function represents
the driver name. This function will be called by multiple callers in the
next patch.

Link: https://lore.kernel.org/all/ad064333-48a4-4cfa-9428-69e8a7c44667@redhat.com/
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Co-developed-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.h