| 151 | ****************************************************************************/ |
| 152 | |
| 153 | int sim_tsc_uninitialize(void) |
| 154 | { |
| 155 | struct sim_dev_s *priv = (struct sim_dev_s *)&g_simtouchscreen; |
| 156 | char devname[DEV_NAMELEN]; |
| 157 | |
| 158 | /* Stop the event loop (Hmm.. the caller must be sure that there are no |
| 159 | * open references to the touchscreen driver. This might better be |
| 160 | * done in close() using a reference count). |
| 161 | */ |
| 162 | |
| 163 | priv->eventloop = 0; |
| 164 | |
| 165 | /* Un-register the device */ |
| 166 | |
| 167 | snprintf(devname, sizeof(devname), DEV_FORMAT, priv->minor); |
| 168 | iinfo("Un-registering %s\n", devname); |
| 169 | |
| 170 | touch_unregister(&priv->lower, devname); |
| 171 | |
| 172 | return OK; |
| 173 | } |
| 174 | |
| 175 | /**************************************************************************** |
| 176 | * Name: sim_buttonevent |
nothing calls this directly
no test coverage detected