Commit 2f763312 authored by Thierry Reding's avatar Thierry Reding

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: default avatarThierry Reding <treding@nvidia.com>
parent a9e3c90c
...@@ -1388,12 +1388,13 @@ EXPORT_SYMBOL(drm_mode_create_dvi_i_properties); ...@@ -1388,12 +1388,13 @@ EXPORT_SYMBOL(drm_mode_create_dvi_i_properties);
* responsible for allocating a list of format names and passing them to * responsible for allocating a list of format names and passing them to
* this routine. * 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[]) char *modes[])
{ {
struct drm_property *tv_selector; struct drm_property *tv_selector;
struct drm_property *tv_subconnector; struct drm_property *tv_subconnector;
int i; unsigned int i;
if (dev->mode_config.tv_select_subconnector_property) if (dev->mode_config.tv_select_subconnector_property)
return 0; return 0;
...@@ -2274,7 +2275,7 @@ static int __setplane_internal(struct drm_plane *plane, ...@@ -2274,7 +2275,7 @@ static int __setplane_internal(struct drm_plane *plane,
{ {
int ret = 0; int ret = 0;
unsigned int fb_width, fb_height; unsigned int fb_width, fb_height;
int i; unsigned int i;
/* No fb means shut it down */ /* No fb means shut it down */
if (!fb) { if (!fb) {
......
...@@ -1041,8 +1041,9 @@ extern void drm_property_destroy(struct drm_device *dev, struct drm_property *pr ...@@ -1041,8 +1041,9 @@ extern void drm_property_destroy(struct drm_device *dev, struct drm_property *pr
extern int drm_property_add_enum(struct drm_property *property, int index, extern int drm_property_add_enum(struct drm_property *property, int index,
uint64_t value, const char *name); uint64_t value, const char *name);
extern int drm_mode_create_dvi_i_properties(struct drm_device *dev); extern int drm_mode_create_dvi_i_properties(struct drm_device *dev);
extern int drm_mode_create_tv_properties(struct drm_device *dev, int num_formats, extern int drm_mode_create_tv_properties(struct drm_device *dev,
char *formats[]); unsigned int num_modes,
char *modes[]);
extern int drm_mode_create_scaling_mode_property(struct drm_device *dev); extern int drm_mode_create_scaling_mode_property(struct drm_device *dev);
extern int drm_mode_create_aspect_ratio_property(struct drm_device *dev); extern int drm_mode_create_aspect_ratio_property(struct drm_device *dev);
extern int drm_mode_create_dirty_info_property(struct drm_device *dev); extern int drm_mode_create_dirty_info_property(struct drm_device *dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment