rk hdmi: add display_show_debug to fix warning
authorhjc <hjc@rock-chips.com>
Mon, 1 Sep 2014 10:28:12 +0000 (18:28 +0800)
committerhjc <hjc@rock-chips.com>
Mon, 1 Sep 2014 10:28:31 +0000 (18:28 +0800)
drivers/video/rockchip/display-sys.c

index 373cba98ac05ff8c9be25b43896fb11ee2abf320..3f8e6b85bb6bb81be12f076f70613cb334d2f00e 100755 (executable)
@@ -189,6 +189,12 @@ static ssize_t display_store_scale(struct device *dev,
        return -EINVAL;
 }
 
+static ssize_t display_show_debug(struct device *dev,
+                               struct device_attribute *attr, char *buf)
+{
+       return -EINVAL;
+}
+
 static ssize_t display_store_debug(struct device *dev,
                                        struct device_attribute *attr,
                                        const char *buf, size_t count)
@@ -212,7 +218,7 @@ static struct device_attribute display_attrs[] = {
        __ATTR(modes, S_IRUGO, display_show_modes, NULL),
        __ATTR(mode, 0664, display_show_mode, display_store_mode),
        __ATTR(scale, 0664, display_show_scale, display_store_scale),
-       __ATTR(debug, 0664, NULL, display_store_debug),
+       __ATTR(debug, 0664, display_show_debug, display_store_debug),
        __ATTR_NULL
 };