Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4dc87fb6 authored by Banajit Goswami's avatar Banajit Goswami
Browse files

hal: mark unused parameters correctly

Some of the parameters passed to functions in older platforms
are not used anymore, though we maintain the platform code for
backward compatibility.
Mark the unused parameter explicitely as __unused.

Change-Id: I814f5f233590ecfd3e79bf58b97ad6d37be74601
parent a6cc9b17
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -374,7 +374,7 @@ int platform_get_snd_device_name_extn(void *platform, snd_device_t snd_device,
}

void platform_add_backend_name(char *mixer_path, snd_device_t snd_device,
                               struct audio_usecase *usecase)
                               struct audio_usecase *usecase __unused)
{
    if (snd_device == SND_DEVICE_IN_BT_SCO_MIC)
        strlcat(mixer_path, " bt-sco", MIXER_PATH_MAX_LENGTH);
@@ -1172,3 +1172,8 @@ bool platform_send_gain_dep_cal(void *platform __unused,
{
    return 0;
}

void platform_set_gsm_mode(void *platform __unused, bool enable __unused)
{
    ALOGE("%s: Not implemented", __func__);
}
+2 −2

File changed.

Contains only whitespace changes.