- Fix-ups

- Deprecate pci_get_bus_and_slot(); apple_bl
 
  - Bug Fixes
    - Enable Chip Select	when conducting	SPI transfers; corgi_lcd, tdo24m, tosa_lcd
 -----BEGIN PGP SIGNATURE-----
 
 iQIcBAABCAAGBQJaZeNhAAoJEFGvii+H/Hdh/TYP/jKCYCIOQTK5HdScMglqDW4g
 DIEfE73Cb8Y/NoYPNgTU6dDbxcljLQc9Dn/dg4ovWqCDbADs5hj9ill/X7mBSRah
 r/9b4GALu3KWiY0zkikIPjtsJCVHSMYqj8dgh+1kGSXQCTqlIFmk6upvN/K+fuHt
 h1R0hbQpfbFMrVOv92BXXHcTkZpIQQAZvun8RjE6/P5bYn1tbWFC/K0eIppU6qJJ
 waQpwx4H9HDV7QI+wAV2FTMbJ3Fr36cY57zGIFr2LdCqZmd6sSiQzUrVEMTnRi7w
 SW2h7ucFDzNOzioL+eTH96oYJ0AmVldUpc9zlHLwtWODsPqP7L/MI0wOuxeGh9fO
 2Pbta+EWb/yeVmUgpvWerkAYs6WZaNftEQjWnjMQlDDaGuRIEX4yU2Rm3c9yXPT2
 tBAr49fCoBQKIfvFaMPQXwe+xulrrRdgsvoFOCBPMg6aNkmDl4UI+fMH+lSw67+G
 Va1n0xJgl6mB1z9Uu4u5sSOS/N7KuCgT1Mi9Ij6/iEcxeSU7nuwGNPFzUy+1U2Bc
 XcZ3EVWA0VM4W2P1vy9gXbHAKTMRiYcrVwFH5IwVVacgQE+8wUSsBROYVhwKH2Fc
 BCnG+qr8098gWeom71Yv5FuH4BL8weIECJjXmyuMO9WdmNPrIRg5VMH3zMqX6wdL
 sLEnZ98bj3ymmNIpeksS
 =/n6L
 -----END PGP SIGNATURE-----

Merge tag 'for-backlight-next-4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight

Pull backlight updates from Lee Jones:
 "Fix-ups:
   - Deprecate pci_get_bus_and_slot() in apple_bl

  Bug Fixes:
   - Enable Chip Select when conducting SPI transfers in corgi_lcd,
     tdo24m, tosa_lcd"

* tag 'for-backlight-next-4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
  backlight: tdo24m: Fix the SPI CS between transfers
  backlight: apple_bl: Deprecate pci_get_bus_and_slot()
This commit is contained in:
Linus Torvalds 2018-01-29 11:07:22 -08:00
commit aa5e75bc7a
4 changed files with 4 additions and 4 deletions

View file

@ -143,7 +143,7 @@ static int apple_bl_add(struct acpi_device *dev)
struct pci_dev *host;
int intensity;
host = pci_get_bus_and_slot(0, 0);
host = pci_get_domain_bus_and_slot(0, 0, 0);
if (!host) {
pr_err("unable to find PCI host\n");

View file

@ -177,7 +177,7 @@ static int corgi_ssp_lcdtg_send(struct corgi_lcd *lcd, int adrs, uint8_t data)
struct spi_message msg;
struct spi_transfer xfer = {
.len = 1,
.cs_change = 1,
.cs_change = 0,
.tx_buf = lcd->buf,
};

View file

@ -369,7 +369,7 @@ static int tdo24m_probe(struct spi_device *spi)
spi_message_init(m);
x->cs_change = 1;
x->cs_change = 0;
x->tx_buf = &lcd->buf[0];
spi_message_add_tail(x, m);

View file

@ -49,7 +49,7 @@ static int tosa_tg_send(struct spi_device *spi, int adrs, uint8_t data)
struct spi_message msg;
struct spi_transfer xfer = {
.len = 1,
.cs_change = 1,
.cs_change = 0,
.tx_buf = buf,
};