Revert r298268 (Add optional chip_select/deselect methods).

None of supported hardware do require that.
This commit is contained in:
Ruslan Bukin 2016-04-19 15:39:46 +00:00
parent d1bdbe1259
commit a0814c1586
2 changed files with 0 additions and 33 deletions

View File

@ -185,24 +185,9 @@ spibus_hinted_child(device_t bus, const char *dname, int dunit)
static int
spibus_transfer_impl(device_t dev, device_t child, struct spi_command *cmd)
{
return (SPIBUS_TRANSFER(device_get_parent(dev), child, cmd));
}
static int
spibus_chip_select_impl(device_t dev, device_t child)
{
return (SPIBUS_CHIP_SELECT(device_get_parent(dev), child));
}
static int
spibus_chip_deselect_impl(device_t dev, device_t child)
{
return (SPIBUS_CHIP_DESELECT(device_get_parent(dev), child));
}
static device_method_t spibus_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, spibus_probe),
@ -223,8 +208,6 @@ static device_method_t spibus_methods[] = {
/* spibus interface */
DEVMETHOD(spibus_transfer, spibus_transfer_impl),
DEVMETHOD(spibus_chip_select, spibus_chip_select_impl),
DEVMETHOD(spibus_chip_deselect, spibus_chip_deselect_impl),
DEVMETHOD_END
};

View File

@ -39,19 +39,3 @@ METHOD int transfer {
device_t child;
struct spi_command *cmd;
};
#
# Assert chip select
#
METHOD int chip_select {
device_t dev;
device_t child;
};
#
# Deassert chip select
#
METHOD int chip_deselect {
device_t dev;
device_t child;
};