1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>sparse_keymap_free</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="ch08s05.html" title="Sparse keymap support"><link rel="prev" href="API-sparse-keymap-setup.html" title="sparse_keymap_setup"><link rel="next" href="API-sparse-keymap-report-entry.html" title="sparse_keymap_report_entry"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">sparse_keymap_free</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-sparse-keymap-setup.html">Prev</a>&#160;</td><th width="60%" align="center">Sparse keymap support</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-sparse-keymap-report-entry.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-sparse-keymap-free"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sparse_keymap_free &#8212; 
2     free memory allocated for sparse keymap
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">sparse_keymap_free </b>(</code></td><td>struct input_dev * <var class="pdparam">dev</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1114779020"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev</code></em></span></dt><dd><p>
4     Input device using sparse keymap
5    </p></dd></dl></div></div><div class="refsect1"><a name="idp1114780628"></a><h2>Description</h2><p>
6   This function is used to free memory allocated by sparse keymap
7   in an input device that was set up by <code class="function">sparse_keymap_setup</code>.
8</p></div><div class="refsect1"><a name="idp1114781692"></a><h2>NOTE</h2><p>
9   It is safe to cal this function while input device is
10   still registered (however the drivers should care not to try to
11   use freed keymap and thus have to shut off interrupts/polling
12   before freeing the keymap).
13</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-sparse-keymap-setup.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch08s05.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-sparse-keymap-report-entry.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">sparse_keymap_setup</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">sparse_keymap_report_entry</span></td></tr></table></div></body></html>
14