gpu: pvr: remove unused function args from PVRSRVSetDevicePowerStateKM
authorImre Deak <imre.deak@nokia.com>
Mon, 5 Apr 2010 21:49:06 +0000 (00:49 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:40 +0000 (21:09 +0300)
commit954614384a3af67fd6deb1eb99d836f34de102fb
tree6f38c3b787b8d5e2fbf194de0ba65330cea85a56
parent0b459ef0949d3df0ba271f4a75b358e6088dc68c
gpu: pvr: remove unused function args from PVRSRVSetDevicePowerStateKM

The CallerID parameter was anyway a horrible concept in terms of
understanding what the function is supposed to do when ISR_ID, KERNEL_ID
or TIMER_ID is passed. Function arguments should never have such "high
level" meaning, but rather denote much more concrete things. In this case
for example whether we should mutex_lock() or mutex_trylock() for a
certain lock. Better yet we should have separate functions for the two
cases to keep the function body as simple as possible.

Happily the CallerID and RetainMutex arguments are unused now, so they
can be removed.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
CC: Mark Underwood <mark.underwood@imgtec.com>
CC: Mark Riding <mark.riding@imgtec.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@nokia.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@nokia.com>
pvr/power.c
pvr/power.h
pvr/pvr_debug.c
pvr/pvrsrv.c
pvr/sgxinit.c
pvr/sgxutils.c