FreeBSD Bugzilla – Attachment 206336 Details for
Bug 239699
[patch] dev/isl: Switch to iicdev_readfrom/writeio
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
isl patch
isl.patch (text/plain), 891 bytes, created by
Chuhong Yuan
on 2019-08-07 15:17:47 UTC
(
hide
)
Description:
isl patch
Filename:
MIME Type:
Creator:
Chuhong Yuan
Created:
2019-08-07 15:17:47 UTC
Size:
891 bytes
patch
obsolete
>Index: sys/dev/isl/isl.c >=================================================================== >--- sys/dev/isl/isl.c (revision 350672) >+++ sys/dev/isl/isl.c (working copy) >@@ -78,25 +78,13 @@ > static int > isl_read_byte(device_t dev, uint8_t reg, uint8_t *val) > { >- uint16_t addr = iicbus_get_addr(dev); >- struct iic_msg msgs[] = { >- { addr, IIC_M_WR | IIC_M_NOSTOP, 1, ® }, >- { addr, IIC_M_RD, 1, val }, >- }; >- >- return (iicbus_transfer(dev, msgs, nitems(msgs))); >+ return (iicdev_readfrom(dev, reg, val, 1, IIC_INTRWAIT)); > } > > static int > isl_write_byte(device_t dev, uint8_t reg, uint8_t val) > { >- uint16_t addr = iicbus_get_addr(dev); >- uint8_t bytes[] = { reg, val }; >- struct iic_msg msgs[] = { >- { addr, IIC_M_WR, nitems(bytes), bytes }, >- }; >- >- return (iicbus_transfer(dev, msgs, nitems(msgs))); >+ return (iicdev_writeto(dev, reg, &val, 1, IIC_INTRWAIT)); > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 239699
: 206336