Skip to content

Commit b7380a1

Browse files
westeriandy-shev
authored andcommitted
platform/x86: intel_scu_ipc: Drop intel_scu_ipc_io[read|write][8|16]()
There are no users for these so we can remove them. Signed-off-by: Mika Westerberg <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 59aa78e commit b7380a1

File tree

2 files changed

+0
-80
lines changed

2 files changed

+0
-80
lines changed

arch/x86/include/asm/intel_scu_ipc.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,12 @@
2222
/* Read single register */
2323
int intel_scu_ipc_ioread8(u16 addr, u8 *data);
2424

25-
/* Read two sequential registers */
26-
int intel_scu_ipc_ioread16(u16 addr, u16 *data);
27-
28-
/* Read four sequential registers */
29-
int intel_scu_ipc_ioread32(u16 addr, u32 *data);
30-
3125
/* Read a vector */
3226
int intel_scu_ipc_readv(u16 *addr, u8 *data, int len);
3327

3428
/* Write single register */
3529
int intel_scu_ipc_iowrite8(u16 addr, u8 data);
3630

37-
/* Write two sequential registers */
38-
int intel_scu_ipc_iowrite16(u16 addr, u16 data);
39-
40-
/* Write four sequential registers */
41-
int intel_scu_ipc_iowrite32(u16 addr, u32 data);
42-
4331
/* Write a vector */
4432
int intel_scu_ipc_writev(u16 *addr, u8 *data, int len);
4533

drivers/platform/x86/intel_scu_ipc.c

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -237,40 +237,6 @@ int intel_scu_ipc_ioread8(u16 addr, u8 *data)
237237
}
238238
EXPORT_SYMBOL(intel_scu_ipc_ioread8);
239239

240-
/**
241-
* intel_scu_ipc_ioread16 - read a word via the SCU
242-
* @addr: register on SCU
243-
* @data: return pointer for read word
244-
*
245-
* Read a register pair. Returns 0 on success or an error code. All
246-
* locking between SCU accesses is handled for the caller.
247-
*
248-
* This function may sleep.
249-
*/
250-
int intel_scu_ipc_ioread16(u16 addr, u16 *data)
251-
{
252-
u16 x[2] = {addr, addr + 1};
253-
return pwr_reg_rdwr(x, (u8 *)data, 2, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_R);
254-
}
255-
EXPORT_SYMBOL(intel_scu_ipc_ioread16);
256-
257-
/**
258-
* intel_scu_ipc_ioread32 - read a dword via the SCU
259-
* @addr: register on SCU
260-
* @data: return pointer for read dword
261-
*
262-
* Read four registers. Returns 0 on success or an error code. All
263-
* locking between SCU accesses is handled for the caller.
264-
*
265-
* This function may sleep.
266-
*/
267-
int intel_scu_ipc_ioread32(u16 addr, u32 *data)
268-
{
269-
u16 x[4] = {addr, addr + 1, addr + 2, addr + 3};
270-
return pwr_reg_rdwr(x, (u8 *)data, 4, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_R);
271-
}
272-
EXPORT_SYMBOL(intel_scu_ipc_ioread32);
273-
274240
/**
275241
* intel_scu_ipc_iowrite8 - write a byte via the SCU
276242
* @addr: register on SCU
@@ -287,40 +253,6 @@ int intel_scu_ipc_iowrite8(u16 addr, u8 data)
287253
}
288254
EXPORT_SYMBOL(intel_scu_ipc_iowrite8);
289255

290-
/**
291-
* intel_scu_ipc_iowrite16 - write a word via the SCU
292-
* @addr: register on SCU
293-
* @data: word to write
294-
*
295-
* Write two registers. Returns 0 on success or an error code. All
296-
* locking between SCU accesses is handled for the caller.
297-
*
298-
* This function may sleep.
299-
*/
300-
int intel_scu_ipc_iowrite16(u16 addr, u16 data)
301-
{
302-
u16 x[2] = {addr, addr + 1};
303-
return pwr_reg_rdwr(x, (u8 *)&data, 2, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_W);
304-
}
305-
EXPORT_SYMBOL(intel_scu_ipc_iowrite16);
306-
307-
/**
308-
* intel_scu_ipc_iowrite32 - write a dword via the SCU
309-
* @addr: register on SCU
310-
* @data: dword to write
311-
*
312-
* Write four registers. Returns 0 on success or an error code. All
313-
* locking between SCU accesses is handled for the caller.
314-
*
315-
* This function may sleep.
316-
*/
317-
int intel_scu_ipc_iowrite32(u16 addr, u32 data)
318-
{
319-
u16 x[4] = {addr, addr + 1, addr + 2, addr + 3};
320-
return pwr_reg_rdwr(x, (u8 *)&data, 4, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_W);
321-
}
322-
EXPORT_SYMBOL(intel_scu_ipc_iowrite32);
323-
324256
/**
325257
* intel_scu_ipc_readvv - read a set of registers
326258
* @addr: register list

0 commit comments

Comments
 (0)