Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5dc137dd authored by Luca Ellero's avatar Luca Ellero Committed by Greg Kroah-Hartman
Browse files

staging: ced1401: rename LineCount()



rename camel case function LineCount() to ced_line_count()

Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1de8f0a9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -528,13 +528,13 @@ int ced_stat_1401(DEVICE_EXTENSION *pdx)
}

/****************************************************************************
** LineCount
** ced_line_count
**
** Returns the number of newline chars in the buffer. There is no need for
** any fancy interlocks as we only read the interrupt routine data, and the
** system is arranged so nothing can be destroyed.
****************************************************************************/
int LineCount(DEVICE_EXTENSION *pdx)
int ced_line_count(DEVICE_EXTENSION *pdx)
{
	int iReturn = 0;	/*  will be count of line ends */

+1 −1
Original line number Diff line number Diff line
@@ -1245,7 +1245,7 @@ static long ced_ioctl(struct file *file, unsigned int cmd, unsigned long ulArg)
		return ced_stat_1401(pdx);

	case _IOC_NR(IOCTL_CED_LINECOUNT):
		return LineCount(pdx);
		return ced_line_count(pdx);

	case _IOC_NR(IOCTL_CED_GETSTRING(0)):
		return ced_get_string(pdx, (char __user *)ulArg, _IOC_SIZE(cmd));
+1 −1
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ extern int SetTransfer(DEVICE_EXTENSION *pdx, struct transfer_area_desc __user *
extern int UnsetTransfer(DEVICE_EXTENSION *pdx, int nArea);
extern int SetEvent(DEVICE_EXTENSION *pdx, struct transfer_event __user *pTE);
extern int ced_stat_1401(DEVICE_EXTENSION *pdx);
extern int LineCount(DEVICE_EXTENSION *pdx);
extern int ced_line_count(DEVICE_EXTENSION *pdx);
extern int GetOutBufSpace(DEVICE_EXTENSION *pdx);
extern int GetTransfer(DEVICE_EXTENSION *pdx, TGET_TX_BLOCK __user *pGTB);
extern int KillIO1401(DEVICE_EXTENSION *pdx);