Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a852daa0 authored by Jean Delvare's avatar Jean Delvare Committed by Greg Kroah-Hartman
Browse files

[PATCH] i2c: writing-client doc update complement



My latest update to the writing-clients i2c documentation file was
incomplete, here's the complement.

Large parts of this file are still way out-of-date, but at least now
the memory allocation and freeing instructions are consistent.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f093182d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -412,7 +412,7 @@ For now, you can ignore the `flags' parameter. It is there for future use.
        release_region(address,FOO_EXTENT);
    /* SENSORS ONLY END */
    ERROR1:
      kfree(new_client);
      kfree(data);
    ERROR0:
      return err;
  }
@@ -443,7 +443,7 @@ much simpler than the attachment code, fortunately!
      release_region(client->addr,LM78_EXTENT);
    /* HYBRID SENSORS CHIP ONLY END */

    kfree(data);
    kfree(i2c_get_clientdata(client));
    return 0;
  }