• Marek Vasut's avatar
    net: ks8851: Remove ks8851_rdreg32() · 806f6649
    Marek Vasut authored
    The ks8851_rdreg32() is used only in one place, to read two registers
    using a single read. To make it easier to support 16-bit accesses via
    parallel bus later on, replace this single read with two 16-bit reads
    from each of the registers and drop the ks8851_rdreg32() altogether.
    
    If this has noticeable performance impact on the SPI variant of KS8851,
    then we should consider using regmap to abstract the SPI and parallel
    bus options and in case of SPI, permit regmap to merge register reads
    of neighboring registers into single, longer, read.
    Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    Cc: David S. Miller <davem@davemloft.net>
    Cc: Lukas Wunner <lukas@wunner.de>
    Cc: Petr Stetiar <ynezz@true.cz>
    Cc: YueHaibing <yuehaibing@huawei.com>
    Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    806f6649
ks8851.c 39.7 KB