summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-10-13 12:45:57 +0200
committerThierry Reding <treding@nvidia.com>2014-11-13 10:43:51 +0100
commit2f7633125a1ca8a03b63bf91b5eca60551141ddb (patch)
treea934e0d359e32e73a1d957714969d11631a4c6b5 /drivers/gpu/drm/drm_crtc.c
parenta9e3c90c9fa39ed00e3223dc8f93c9cd12abb750 (diff)
downloadop-kernel-dev-2f7633125a1ca8a03b63bf91b5eca60551141ddb.zip
op-kernel-dev-2f7633125a1ca8a03b63bf91b5eca60551141ddb.tar.gz
drm: Make drm_mode_create_tv_properties() signature consistent
The prototype and the function implementation differ in their signature. Make them consistent and use an unsigned integer for the number of modes while at it. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 3ea31bc..776ec41 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -1388,12 +1388,13 @@ EXPORT_SYMBOL(drm_mode_create_dvi_i_properties);
* responsible for allocating a list of format names and passing them to
* this routine.
*/
-int drm_mode_create_tv_properties(struct drm_device *dev, int num_modes,
+int drm_mode_create_tv_properties(struct drm_device *dev,
+ unsigned int num_modes,
char *modes[])
{
struct drm_property *tv_selector;
struct drm_property *tv_subconnector;
- int i;
+ unsigned int i;
if (dev->mode_config.tv_select_subconnector_property)
return 0;
@@ -2274,7 +2275,7 @@ static int __setplane_internal(struct drm_plane *plane,
{
int ret = 0;
unsigned int fb_width, fb_height;
- int i;
+ unsigned int i;
/* No fb means shut it down */
if (!fb) {
OpenPOWER on IntegriCloud