# \[2.6 patch\] make the dummy touchkit\_ps2\_detect() static

- Subsystems: INPUT (KEYBOARD, MOUSE, JOYSTICK, TOUCHSCREEN) DRIVERS, THE REST
- Maintainers: Dmitry Torokhov, Linus Torvalds
- List: linux-input
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linux-input/2007/08/994359/t

## \[2.6 patch\] make the dummy touchkit\_ps2\_detect() static

- From: Adrian Bunk \<bunk@kernel.org\>
- Date: 2007-08-14 21:30:31 
- Message: https://ratatoskr.run/linux-input/2007/08/994359.md

```text
The dummy touchkit_ps2_detect() for the CONFIG_MOUSE_PS2_TOUCHKIT=n case 
shouldn't be a global function.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
64d15c53e66b200d832a6009aa24c344883bcbcf 
diff --git a/drivers/input/mouse/touchkit_ps2.h b/drivers/input/mouse/touchkit_ps2.h
index 61e9dfd..8a0dd35 100644
--- a/drivers/input/mouse/touchkit_ps2.h
+++ b/drivers/input/mouse/touchkit_ps2.h
@@ -15,7 +15,8 @@
 #ifdef CONFIG_MOUSE_PS2_TOUCHKIT
 int touchkit_ps2_detect(struct psmouse *psmouse, int set_properties);
 #else
-inline int touchkit_ps2_detect(struct psmouse *psmouse, int set_properties)
+static inline int touchkit_ps2_detect(struct psmouse *psmouse,
+				      int set_properties)
 {
 	return -ENOSYS;
 }
```

## Re: \[2.6 patch\] make the dummy touchkit\_ps2\_detect() static

- From: Dmitry Torokhov \<hidden\>
- Date: 2007-08-31 02:05:51 
- Message: https://ratatoskr.run/linux-input/2007/08/1000000.md

```text
Hi Adrian,

On Tuesday 14 August 2007 17:22, Adrian Bunk wrote:
> The dummy touchkit_ps2_detect() for the CONFIG_MOUSE_PS2_TOUCHKIT=n case 
> shouldn't be a global function.
> 

Applied, thank you.

Btw, sorry for the long silence - I had a hard drive crash and the day
after I restored everything the disk controller decided to die as well
and write garbage all over the new disk ;(

-- 
Dmitry
```
