Fixed patch radio-si4713.diff
authorPali Rohár <pali.rohar@gmail.com>
Fri, 30 Sep 2011 14:28:30 +0000 (16:28 +0200)
committerPali Rohár <pali.rohar@gmail.com>
Sat, 1 Oct 2011 21:31:53 +0000 (23:31 +0200)
kernel-power-2.6.28/debian/patches/radio-si4713.diff

index e100338..f89af55 100644 (file)
@@ -27,7 +27,7 @@
  
  /*
   * Sysfs properties
-@@ -193,16 +180,7 @@ static ssize_t si4713_lock_write(struct
+@@ -193,16 +180,6 @@ static ssize_t si4713_lock_write(struct
                                const char *buf,
                                size_t count)
  {
@@ -41,8 +41,8 @@
 -      if (l != 0)
 -              config_locked = 1;
 -
-+      sscanf(buf, "%d", &config_locked);
-       return count;
+-      return count;
++      return sscanf(buf, "%d", &config_locked);
  }
  
 @@ -219,7 +197,7 @@ static DEVICE_ATTR(lock, S_IRUGO | S_IWU