lkml.org 
[lkml]   [2012]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 2/3] w1_bq27000 - remove w1_bq27000_write
    The function is never used so remove it to avoid bit-rot.
    It can trivially be re-added if there is ever a need.

    Signed-off-by: NeilBrown <neilb@suse.de>
    ---

    drivers/w1/slaves/w1_bq27000.c | 14 --------------
    1 files changed, 0 insertions(+), 14 deletions(-)

    diff --git a/drivers/w1/slaves/w1_bq27000.c b/drivers/w1/slaves/w1_bq27000.c
    index 50d9af7..6ae60aa 100644
    --- a/drivers/w1/slaves/w1_bq27000.c
    +++ b/drivers/w1/slaves/w1_bq27000.c
    @@ -26,20 +26,6 @@

    static int F_ID;

    -void w1_bq27000_write(struct device *dev, u8 buf, u8 reg)
    -{
    - struct w1_slave *sl = container_of(dev, struct w1_slave, dev);
    -
    - if (!dev) {
    - pr_info("Could not obtain slave dev ptr\n");
    - return;
    - }
    -
    - w1_write_8(sl->master, HDQ_CMD_WRITE | reg);
    - w1_write_8(sl->master, buf);
    -}
    -EXPORT_SYMBOL(w1_bq27000_write);
    -
    static int w1_bq27000_read(struct device *dev, unsigned int reg)
    {
    u8 val;



    \
     
     \ /
      Last update: 2012-02-19 03:13    [W:0.019 / U:155.452 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site