OSDN Git Service

soundwire: Add IO transfer
authorVinod Koul <vinod.koul@intel.com>
Thu, 14 Dec 2017 05:49:37 +0000 (11:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 10:14:57 +0000 (11:14 +0100)
commit9d715fa005ebccc510a430df278665793528e31f
treebdc0f9452a392cdbd2a4a93eb9d1ffe550ebaaea
parent6f3da1f3881c8f2fd7e06cff54a2437399528b4a
soundwire: Add IO transfer

SoundWire bus supports read or write register(s) for SoundWire Slave
device. sdw_read() and sdw_write() APIs are provided for single
register read/write. sdw_nread() and sdw_nwrite() for operations on
contiguous registers.

Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Acked-By: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soundwire/bus.c
drivers/soundwire/bus.h
include/linux/soundwire/sdw.h