[PATCHv2] mfd: twl4030: clarify the return value for read and write

2009-12-02 Thread Amit Kucheria
Infact, we can just return -1 so that caller knows for sure that all messages were not tranferred. Please consider fixed patch instead. We should be checking if all the messages were tranferred or not. And return -1 for failure. Currently we return success (0) even if none of messages were

RE: [PATCHv2] mfd: twl4030: clarify the return value for read and write

2009-12-02 Thread Gadiyar, Anand
Amit Kucheria wrote: Infact, we can just return -1 so that caller knows for sure that all messages were not tranferred. Please consider fixed patch instead. We should be checking if all the messages were tranferred or not. And return -1 for failure. Currently we return success (0) even if