sinowealth: prefix a function name
@@ -572,7 +572,7 @@ sinowealth_raw_to_report_rate(uint8_t raw)
/* @return Maximum DPI for sensor `sensor` or 0 on error. */
static unsigned int
-get_max_dpi_for_sensor(enum sinowealth_sensor sensor)
+sinowealth_get_max_dpi_for_sensor(enum sinowealth_sensor sensor)
{
switch (sensor) {
case PWM3327: return 10200;
@@ -610,7 +610,7 @@ sinowealth_dpi_to_raw(struct ratbag_device *device, unsigned int dpi)
struct sinowealth_data *drv_data = device->drv_data;
enum sinowealth_sensor sensor = drv_data->sensor;
- assert(dpi >= SINOWEALTH_DPI_MIN && dpi <= get_max_dpi_for_sensor(sensor));
+ assert(dpi >= SINOWEALTH_DPI_MIN && dpi <= sinowealth_get_max_dpi_for_sensor(sensor));
unsigned int raw = dpi / 100;
@@ -1453,7 +1453,7 @@ sinowealth_init_profile(struct ratbag_device *device)
/* Number of DPIs = all DPIs from min to max (inclusive) and "0 DPI" as a special value
* to signal a disabled DPI step.
*/
- unsigned int num_dpis = (get_max_dpi_for_sensor(drv_data->sensor) - SINOWEALTH_DPI_MIN) / SINOWEALTH_DPI_STEP + 2;
+ unsigned int num_dpis = (sinowealth_get_max_dpi_for_sensor(drv_data->sensor) - SINOWEALTH_DPI_MIN) / SINOWEALTH_DPI_STEP + 2;
ratbag_device_init_profiles(device, SINOWEALTH_NUM_PROFILES, SINOWEALTH_NUM_DPIS, drv_data->button_count, drv_data->led_count);
